Versions in this module Expand all Collapse all v0 v0.0.2 Dec 30, 2023 Changes in this version + type BlobV1 struct + EncryptedData []byte + Nonce [24]byte + Version int + WrappedDEK string + type KMSGCPBoxer struct + func NewKMSGCPBoxer(keyPath string) *KMSGCPBoxer + func (b *KMSGCPBoxer) Open(in string) ([]byte, error) + func (b *KMSGCPBoxer) Seal(in []byte) (string, error) + func (b *KMSGCPBoxer) WrapType() string + type KMSGCPManager struct + func NewKMSGCPManager(keyPath string) (*KMSGCPManager, error) + func (k *KMSGCPManager) Decrypt(in []byte) ([]byte, error) + func (k *KMSGCPManager) Encrypt(in []byte) ([]byte, error) + type KMSManager interface + Decrypt func([]byte) ([]byte, error) + Encrypt func([]byte) ([]byte, error) + type PassphraseBoxer struct + func NewPassphraseBoxer(password string) *PassphraseBoxer + func (b *PassphraseBoxer) Open(in string) ([]byte, error) + func (b *PassphraseBoxer) Seal(in []byte) (string, error) + func (b *PassphraseBoxer) WrapType() string + type PassthroughKeyManager struct + func NewPassthroughKeyManager() *PassthroughKeyManager + func (k PassthroughKeyManager) Decrypt(in []byte) ([]byte, error) + func (k PassthroughKeyManager) Encrypt(in []byte) ([]byte, error) + type SecretBoxer interface + Open func(in string) ([]byte, error) + Seal func(in []byte) (string, error) + WrapType func() string + func SecretBoxerForType(boxerType string, keypath string) (SecretBoxer, error) + type Vault struct + Comment string + KeyBag []solana.PrivateKey + Kind string + SecretBoxCiphertext string + SecretBoxWrap string + Version int + func NewVault() *Vault + func NewVaultFromSingleKey(privKey string) (*Vault, error) + func NewVaultFromWalletFile(filename string) (*Vault, error) + func (v *Vault) AddPrivateKey(privateKey solana.PrivateKey) solana.PublicKey + func (v *Vault) NewKeyPair() (pub solana.PublicKey, err error) + func (v *Vault) Open(boxer SecretBoxer) error + func (v *Vault) PrintPrivateKeys() + func (v *Vault) PrintPublicKeys() + func (v *Vault) Seal(boxer SecretBoxer) error + func (v *Vault) WriteToFile(filename string) error