Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper struct{}
Helper provides wallet helper functionalities without knowing about wallet private and public keys.
func (Helper) AddressToPubKey ¶
AddressToPubKey creates ED25519 public key from address, or returns error otherwise.
type Wallet ¶
type Wallet struct { Private ed25519.PrivateKey `json:"private" bson:"private"` Public ed25519.PublicKey `json:"public" bson:"public"` }
Wallet holds public and private key of the wallet owner.
func DecodeGOBWallet ¶
DecodeGOBWallet tries to decode Wallet from gob representation or returns error otherwise.
func (*Wallet) Address ¶
Address creates address from the public key that contains wallet version and checksum.
func (*Wallet) ChecksumLength ¶
ChecksumLength returns checksum length.
func (*Wallet) EncodeGOB ¶
EncodeGOB tries to encodes Wallet in to the gob representation or returns error otherwise.
func (*Wallet) Sign ¶
Sign signs the message with Ed25519 signature. Returns digest hash sha256 and signature.