forked from TrueCloudLab/frostfs-api-go
[#128] sdk: Implement Bytes method on NEO3Wallet type
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
2b20230d7f
commit
1c3e69721b
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue