Documentation ¶
Index ¶
- func InitCrypto()
- type KeyVault
- type KeyVaultOptions
- func (options *KeyVaultOptions) SetEncryptor(encryptor encryptor2.Encryptor) *KeyVaultOptions
- func (options *KeyVaultOptions) SetPassword(password string) *KeyVaultOptions
- func (options *KeyVaultOptions) SetStorage(storage interface{}) *KeyVaultOptions
- func (options *KeyVaultOptions) SetWalletType(walletType core.WalletType) *KeyVaultOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyVault ¶
type KeyVault struct { Context *core.WalletContext // contains filtered or unexported fields }
KeyVault is an EIP 2333,2334,2335 compliant hierarchical deterministic portfolio https://eips.ethereum.org/EIPS/eip-2333 https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2334.md https://eips.ethereum.org/EIPS/eip-2335
func NewKeyVault ¶
func NewKeyVault(options *KeyVaultOptions) (*KeyVault, error)
NewKeyVault creates a new wallet (with new ids) and will save it to storage Import and New are the same action.
func OpenKeyVault ¶
func OpenKeyVault(options *KeyVaultOptions) (*KeyVault, error)
OpenKeyVault opens an existing KeyVault (and wallet) from memory
type KeyVaultOptions ¶
type KeyVaultOptions struct {
// contains filtered or unexported fields
}
KeyVaultOptions contains options to create a new key vault object
func (*KeyVaultOptions) SetEncryptor ¶
func (options *KeyVaultOptions) SetEncryptor(encryptor encryptor2.Encryptor) *KeyVaultOptions
SetEncryptor is the encryptor setter
func (*KeyVaultOptions) SetPassword ¶
func (options *KeyVaultOptions) SetPassword(password string) *KeyVaultOptions
SetPassword is the password setter
func (*KeyVaultOptions) SetStorage ¶
func (options *KeyVaultOptions) SetStorage(storage interface{}) *KeyVaultOptions
SetStorage is the storage setter
func (*KeyVaultOptions) SetWalletType ¶
func (options *KeyVaultOptions) SetWalletType(walletType core.WalletType) *KeyVaultOptions
SetWalletType is the wallet type setter
Click to show internal directories.
Click to hide internal directories.