file

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

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

func Ed25519FromMnemonic(mnemonic string, number uint32) (sdkSignature.Signer, []byte, error)

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

func Secp256k1FromMnemonic(mnemonic string, number uint32) (sdkSignature.Signer, []byte, error)

Secp256k1FromMnemonic derives a signer using BIP-44 from given mnemonic.

func Sr25519FromMnemonic added in v0.5.0

func Sr25519FromMnemonic(mnemonic string, number uint32) (sdkSignature.Signer, []byte, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL