Versions in this module Expand all Collapse all v1 v1.2.0 Jun 21, 2024 v1.0.0 Mar 29, 2024 Changes in this version + const LastVersion + func GetPassword(prompt string) string + type EncryptedMnemonic struct + func CreateMnemonics(params *dagconfig.Params, numKeys uint32, cmdLinePassword string, ...) (encryptedPrivateKeys []*EncryptedMnemonic, extendedPublicKeys []string, ...) + func ImportMnemonics(params *dagconfig.Params, numKeys uint32, cmdLinePassword string, ...) (encryptedPrivateKeys []*EncryptedMnemonic, extendedPublicKeys []string, ...) + type File struct + CosignerIndex uint32 + ECDSA bool + EncryptedMnemonics []*EncryptedMnemonic + ExtendedPublicKeys []string + MinimumSignatures uint32 + NumThreads uint8 + Version uint32 + func NewFileFromMnemonic(params *dagconfig.Params, mnemonic string, password string) (*File, error) + func ReadKeysFile(netParams *dagconfig.Params, path string) (*File, error) + func (d *File) DecryptMnemonics(password string) ([]string, error) + func (d *File) LastUsedExternalIndex() uint32 + func (d *File) LastUsedInternalIndex() uint32 + func (d *File) Path() string + func (d *File) Save() error + func (d *File) SetLastUsedExternalIndex(index uint32) error + func (d *File) SetLastUsedInternalIndex(index uint32) error + func (d *File) SetPath(params *dagconfig.Params, path string, forceOverride bool) error + func (d *File) TryLock() error