Documentation ¶
Index ¶
- func ActSigType(typ types.KeyType) crypto.SigType
- func WalletNew(typ types.KeyType) (*types.KeyInfo, *address.Address, error)
- func WalletPrivateToAddress(typ crypto.SigType, pk []byte) (*address.Address, error)
- func WalletSign(typ types.KeyType, pk []byte, data []byte) (*crypto.Signature, error)
- func WalletSignMessage(typ types.KeyType, pk []byte, msg *types.Message) (*types.SignedMessage, error)
- func WalletVerify(sig *crypto.Signature, addr address.Address, msg []byte) error
- func WalletVerifyMessage(sm *types.SignedMessage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WalletPrivateToAddress ¶
WalletPrivateToAddress convert private key to public key address
func WalletSign ¶
WalletSign signs the given bytes using the KeyType and private key.
func WalletSignMessage ¶
func WalletSignMessage(typ types.KeyType, pk []byte, msg *types.Message) (*types.SignedMessage, error)
WalletSignMessage signs the given message using the given private key.
func WalletVerify ¶
WalletVerify verify the signed message
func WalletVerifyMessage ¶
func WalletVerifyMessage(sm *types.SignedMessage) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.