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 ¶
func InitCrypto ¶
func InitCrypto()
Types ¶
type KeyVault ¶
type KeyVault struct { Context *core.WalletContext // contains filtered or unexported fields }
This 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)
New KeyVault will create 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)
wil try and open an existing KeyVault (and wallet) from memory
type KeyVaultOptions ¶
type KeyVaultOptions struct {
// contains filtered or unexported fields
}
func (*KeyVaultOptions) SetEncryptor ¶
func (options *KeyVaultOptions) SetEncryptor(encryptor encryptor2.Encryptor) *KeyVaultOptions
func (*KeyVaultOptions) SetPassword ¶
func (options *KeyVaultOptions) SetPassword(password string) *KeyVaultOptions
func (*KeyVaultOptions) SetStorage ¶
func (options *KeyVaultOptions) SetStorage(storage interface{}) *KeyVaultOptions
func (*KeyVaultOptions) SetWalletType ¶
func (options *KeyVaultOptions) SetWalletType(walletType core.WalletType) *KeyVaultOptions
Click to show internal directories.
Click to hide internal directories.