[#128] sdk: Implement Bytes method on NEO3Wallet type

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-31 10:45:46 +03:00 committed by Stanislav Bogatyrev
parent 2b20230d7f
commit 1c3e69721b

View file

@ -35,3 +35,11 @@ func NEO3WalletFromPublicKey(key *ecdsa.PublicKey) (owner NEO3Wallet, err error)
func (w NEO3Wallet) String() string { func (w NEO3Wallet) String() string {
return base58.Encode(w[:]) return base58.Encode(w[:])
} }
func (w *NEO3Wallet) Bytes() []byte {
if w != nil {
return w[:]
}
return nil
}