[#147] Work around owner package

Add NEO3WalletSize as constant value.

closes #147

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
Evgeniy Kulikov 2020-10-14 22:09:13 +03:00 committed by Alex Vanin
parent 20273357f6
commit e2d8f408d8

View file

@ -10,7 +10,10 @@ import (
)
// NEO3Wallet represents NEO3 wallet address.
type NEO3Wallet [25]byte
type NEO3Wallet [NEO3WalletSize]byte
// NEO3WalletSize contains size of neo3 wallet.
const NEO3WalletSize = 25
// NEO3WalletFromPublicKey converts public key to NEO3 wallet address.
func NEO3WalletFromPublicKey(key *ecdsa.PublicKey) (*NEO3Wallet, error) {