Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
type AccountService interface { GenerateFamilySeed(password string) (KeyType, Key, error) NewKeyFromSecret(string) (KeyType, Key, error) NewKeyFromBytes([]byte) (KeyType, Key, error) NewPublicFromHex(string) (KeyType, PublicKey, error) NewPublicFromBytes([]byte) (KeyType, PublicKey, error) NewAccountFromAddress(string) (KeyType, core.Address, error) NewAccountFromBytes([]byte) (KeyType, core.Address, error) }
type Key ¶
type Key interface { core.Textable core.Binariable Signable Verifiable GetPrivate() (PrivateKey, error) GetPublic() (PublicKey, error) GetAddress() (core.Address, error) }
type KeyType ¶
type KeyType uint16
func GetKeyTypeByName ¶
func GetKeyTypes ¶
func GetKeyTypes() []KeyType
func (KeyType) CreateWith ¶
func (KeyType) MarshalText ¶
func (*KeyType) UnmarshalText ¶
type PrivateKey ¶
type PublicKey ¶
type PublicKey interface { core.Textable core.Binariable Verifiable GenerateAddress() (core.Address, error) }
Click to show internal directories.
Click to hide internal directories.