Documentation ¶
Index ¶
- Variables
- func Execute()
- func GetSignAlgoByName(name string) crypto.Algorithm
- func InitAccount() error
- func LoadAndSetAccountForSDK(s *sdk.EMPOWDevSDK) error
- func LoadKeyPair(name string) (*account.KeyPair, error)
- func ParseAmountLimit(limitStr string) ([]*rpcpb.AmountLimit, error)
- func SaveAccount(name string, kp *account.KeyPair) error
- type AccountInfo
- type KeyPairInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidSignAlgos = []string{"ed25519", "secp256k1"}
ValidSignAlgos ...
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func LoadAndSetAccountForSDK ¶
func LoadAndSetAccountForSDK(s *sdk.EMPOWDevSDK) error
LoadAndSetAccountForSDK ...
func ParseAmountLimit ¶
func ParseAmountLimit(limitStr string) ([]*rpcpb.AmountLimit, error)
ParseAmountLimit ...
Types ¶
type AccountInfo ¶
type AccountInfo struct { Address string `json:"address"` Keypairs map[string]*KeyPairInfo `json:"keypairs"` }
AccountInfo ...
type KeyPairInfo ¶
type KeyPairInfo struct { RawKey string `json:"raw_key,omitempty"` KeyType string `json:"key_type"` PubKey string `json:"public_key"` EncryptMethod string `json:"encrypt_method,omitempty"` Salt string `json:"salt,omitempty"` EncryptedKey string `json:"encrypted_key,omitempty"` Mac string `json:"mac,omitempty"` }
KeyPairInfo ...
func NewKeyPairInfo ¶
func NewKeyPairInfo(rawKey string, keyType string) (*KeyPairInfo, error)
NewKeyPairInfo ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.