package
0.0.0-20220620005849-a315113d9162
Repository: https://github.com/mycodeku/transtionhelper.git
Documentation: pkg.go.dev
# Functions
encoding info.
MkAccKeyOutput create a KeyOutput in with "acc" Bech32 prefixes.
MkAccKeysOutput returns a slice of KeyOutput objects, each with the "acc" Bech32 prefixes, given a slice of Record objects.
MkConsKeyOutput create a KeyOutput in with "cons" Bech32 prefixes.
MkValKeyOutput create a KeyOutput in with "val" Bech32 prefixes.
New creates a new instance of a keyring.
NewInMemory creates a transient keyring useful for testing purposes and on-the-fly key generation.
NewKeyOutput creates a default KeyOutput instance without Mnemonic, Threshold and PubKeys.
NewLedgerRecord creates a new Record with ledger item.
NewLegacyMultiInfo creates a new legacyMultiInfo instance.
NewLocalRecord creates a new Record with local key item.
NewMultiRecord creates a new Record with multi item.
NewOfflineRecord creates a new Record with offline item.
NewSigningAlgoFromString creates a supported SignatureAlgo.
NewUnsafe returns a new keyring that provides support for unsafe operations.
RegisterLegacyAminoCodec registers concrete types and interfaces on the given codec.
SignWithLedger signs a binary message with the ledger device referenced by an Info object and returns the signed bytes and the public key.
# Constants
Backend options for Keyring.
Backend options for Keyring.
Backend options for Keyring.
Backend options for Keyring.
Backend options for Keyring.
Backend options for Keyring.
ChineseSimplified is currently not supported.
ChineseTraditional is currently not supported.
DefaultBIP39Passphrase used for deriving seed from mnemonic.
English is the default language to create a mnemonic.
French is currently not supported.
Italian is currently not supported.
Japanese is currently not supported.
Korean is currently not supported.
Spanish is currently not supported.
Info KeyTypes.
Info KeyTypes.
Info KeyTypes.
Info KeyTypes.
# Variables
No description provided by the author
No description provided by the author
ErrPrivKeyExtr is used to output an error if extraction of a private key from Local item fails.
No description provided by the author
ErrUnsupportedLanguage is raised when the caller tries to use a different language than english for creating a mnemonic sentence.
ErrUnsupportedSigningAlgo is raised when the caller tries to use a different signing scheme than secp256k1.
# Structs
KeyOutput defines a structure wrapping around an Info object used for output functionality.
multiInfo is the public information about a multisig key.
Options define the options of the Keyring.
Record is used for representing a key in the keyring.
Ledger item.
No description provided by the author
Item is a keyring item stored in a keyring backend.
No description provided by the author
Multi item.
No description provided by the author
Offline item.
No description provided by the author
# Interfaces
Exporter is implemented by key stores that support export of public and private keys.
Importer is implemented by key stores that support import of public and private keys.
Keyring exposes operations over a backend supported by github.com/99designs/keyring.
Deprecated: LegacyInfo is the publicly exposed information about a keypair.
Migrator is implemented by key stores and enables migration of keys from amino to proto.
SignatureAlgo defines the interface for a keyring supported algorithm.
Signer is implemented by key stores that want to provide signing capabilities.
UnsafeExporter is implemented by key stores that support unsafe export of private keys' material.
UnsafeKeyring exposes unsafe operations such as unsafe unarmored export in addition to those that are made available by the Keyring interface.
# Type aliases
No description provided by the author
KeyType reflects a human-readable type for key listing.
Language is a language to create the BIP 39 mnemonic in.
Option overrides keyring configuration options.
No description provided by the author
SigningAlgoList is a slice of signature algorithms.