Versions in this module Expand all Collapse all v2 v2.0.0 Feb 17, 2023 Changes in this version + const DefaultSeedMethod + func CreateSeed(length int) ([]byte, error) + func GetPrivateKey(secrets KeyPairSecrets) (*ecdsa.PrivateKey, error) + func GetPrivateKeyFromExponent(privateExponentHex string) (*ecdsa.PrivateKey, error) + func GetPublicKeyBase58FromKeyPairSecrets(secrets KeyPairSecrets) (string, error) + func GetPublicKeyFromBase58(publicBase58 string) (*ecdsa.PublicKey, error) + func GetPublicKeysFromPrivateKey(privateKey *ecdsa.PrivateKey) ([]byte, string, error) + func MnemonicBip39ToSeed(mnemonic string) ([]byte, error) + func PathForDIDType(name string, didType id.DidType) string + func SeedBip39ToMnemonic(seed []byte) (string, error) + func ValidateBip39Seed(seed []byte) error + type KeyPair struct + PrivateKey *ecdsa.PrivateKey + PublicKeyBase58 string + PublicKeyBytes []byte + func GetKeyPair(secrets KeyPairSecrets) (*KeyPair, error) + type KeyPairSecrets interface + Password func() string + Path func() string + Seed func() []byte + SeedMethod func() SeedMethod + func NewDefaultKeyPairSecrets(seed []byte, path string) (KeyPairSecrets, error) + func NewDefaultKeyPairSecretsWithPassword(seed []byte, path string, password string) (KeyPairSecrets, error) + func NewKeyPairSecrets(seed []byte, path string, seedMethod SeedMethod, password string) (KeyPairSecrets, error) + type SeedMethod int + const SeedMethodBip39 + const SeedMethodNone Other modules containing this package github.com/Iotic-Labs/iotics-identity-go github.com/Iotic-Labs/iotics-identity-go/v3