Skip to content

Commit

Permalink
[#147] Work around owner package
Browse files Browse the repository at this point in the history
Add NEO3WalletSize as constant value.

closes #147

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
  • Loading branch information
Evgeniy Kulikov committed Oct 15, 2020
1 parent 723f7ac commit 2ff00cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/owner/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2ff00cd

Please sign in to comment.