Documentation ¶
Index ¶
Constants ¶
View Source
const ( BIP44Prefix = "44'/118'/" PartialPath = "0'/0/0" FullPath = BIP44Prefix + PartialPath )
Variables ¶
This section is empty.
Functions ¶
func ComputeMastersFromSeed ¶
ComputeMastersFromSeed returns the master public key, master secret, and chain code in hex.
Types ¶
type CipherParams ¶
type CipherParams struct {
IV string `json:"iv"`
}
type KeyManager ¶
type KeyManager interface { Sign(data []byte) ([]byte, error) GetPrivKey() crypto.PrivKey ExportAsMnemonic() (string, error) ExportAsPrivateKey() (string, error) ExportAsKeystore(password string) (Keystore, error) }
func NewKeyManager ¶
func NewKeyManager() (KeyManager, error)
func NewKeyStoreKeyManager ¶
func NewKeyStoreKeyManager(keystore string, auth string) (KeyManager, error)
func NewMnemonicKeyManager ¶
func NewMnemonicKeyManager(mnemonic string) (KeyManager, error)
func NewPrivateKeyManager ¶
func NewPrivateKeyManager(priKey string) (KeyManager, error)
Click to show internal directories.
Click to hide internal directories.