Documentation
¶
Overview ¶
Package memory provides a basis for file based and in-memory vaults
Index ¶
- type Importer
- type PrivateKey
- type UnparsedKey
- type Vault
- func (v *Vault) Close(context.Context) error
- func (v *Vault) ImportKey(ctx context.Context, priv crypt.PrivateKey, opt utils.Options) (vault.KeyReference, error)
- func (v *Vault) List(ctx context.Context) vault.KeyIterator
- func (v *Vault) Name() string
- func (v *Vault) Unlock(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct {
Key crypt.PrivateKey
ID string
}
type UnparsedKey ¶
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Vault is a file system based vault
func New ¶
func New(keys []*PrivateKey, name string) (*Vault, error)
New create a new in-mempory vault. Call Unlock before use
func NewUnparsed ¶
func NewUnparsed(data []*UnparsedKey, name string) *Vault
NewUnparsed create a new in-mempory vault from Tezos encoded data. Call Unlock before use
func (*Vault) ImportKey ¶
func (v *Vault) ImportKey(ctx context.Context, priv crypt.PrivateKey, opt utils.Options) (vault.KeyReference, error)
Click to show internal directories.
Click to hide internal directories.