Documentation ¶
Index ¶
- Constants
- func Ed25519FromMnemonic(mnemonic string, number uint32) (sdkSignature.Signer, []byte, error)
- func Secp256k1FromHex(text string) (sdkSignature.Signer, error)
- func Secp256k1FromMnemonic(mnemonic string, number uint32) (sdkSignature.Signer, []byte, error)
- func Sr25519FromMnemonic(mnemonic string, number uint32) (sdkSignature.Signer, []byte, error)
- func SupportedAlgorithmsForImport(kind *wallet.ImportKind) []string
Constants ¶
View Source
const (
// Bip44DerivationPath is the derivation path defined by BIP-44 for ETH coin type.
Bip44DerivationPath = "m/44'/60'/0'/0/%d"
)
View Source
const (
// Kind is the account kind for the file-backed accounts.
Kind = "file"
)
Variables ¶
This section is empty.
Functions ¶
func Ed25519FromMnemonic ¶ added in v0.8.0
Ed25519FromMnemonic derives a signer using ADR-8 from given mnemonic.
func Secp256k1FromHex ¶
func Secp256k1FromHex(text string) (sdkSignature.Signer, error)
Secp256k1FromHex creates a signer from given hex-encoded private key.
func Secp256k1FromMnemonic ¶
Secp256k1FromMnemonic derives a signer using BIP-44 from given mnemonic.
func Sr25519FromMnemonic ¶ added in v0.5.0
Sr25519FromMnemonic derives a signer using ADR-8 from given mnemonic.
func SupportedAlgorithmsForImport ¶
func SupportedAlgorithmsForImport(kind *wallet.ImportKind) []string
SupportedAlgorithmsForImport returns the algorithms supported by the given import kind.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.