Documentation
¶
Index ¶
- Variables
- func ClaimAccountCmd() *cobra.Command
- func ClaimApplicationCmd() *cobra.Command
- func ClaimSupplierCmd() *cobra.Command
- func CollectMorseAccountsCmd() *cobra.Command
- func ImportMorseAccountsCmd() *cobra.Command
- func LoadMorsePrivateKey(morseKeyExportPath, passphrase string, noPrompt bool) (ed25519.PrivKey, error)
- func UnarmorDecryptPrivKey(armorStr []byte, passphrase string) (ed25519.PrivKey, error)
- func ValidateMorseAccountsCmd() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidUsage usage is returned when the CLI arguments are invalid. ErrInvalidUsage = sdkerrors.Register(codespace, 1100, "invalid CLI usage") // ErrMorseExportState is returned with the JSON generated from `pocket util export-genesis-for-reset` is invalid. ErrMorseExportState = sdkerrors.Register(codespace, 1101, "morse export state failed") // ErrMorseStateTransform is returned upon general failure when transforming the MorseExportState into the MorseAccountState. ErrMorseStateTransform = sdkerrors.Register(codespace, 1102, "morse export to state transformation invalid") // ErrInvalidMorseAccountState is used when the morse account state hash doesn't match the expected hash. ErrInvalidMorseAccountState = sdkerrors.Register(codespace, 1103, "morse account state is invalid") )
Functions ¶
func ClaimAccountCmd ¶
func ClaimApplicationCmd ¶
func ClaimSupplierCmd ¶
func CollectMorseAccountsCmd ¶
DEV_NOTE: AutoCLI does not apply here because there is no gRPC service, message, or query.
Purpose:
- Facilitate deterministic (reproducible) transformation from Morse's export data structure (MorseStateExport) into Shannon's import data structure (MorseAccountState)
- Prepare data for use in the MsgImportMorseAccountState message
Note: - Does not interact with the network directly
func ImportMorseAccountsCmd ¶
func LoadMorsePrivateKey ¶
func LoadMorsePrivateKey(morseKeyExportPath, passphrase string, noPrompt bool) (ed25519.PrivKey, error)
LoadMorsePrivateKey reads, deserializes, decrypts and returns an exported Morse private key from morseKeyExportPath.
func UnarmorDecryptPrivKey ¶
UnarmorDecryptPrivKey deserializes and decrypts the exported Morse private key file in armorStr using the passphrase.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.