keyring

package
v0.0.0-...-c1743e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyring

type Keyring struct {
	*vault.Vault
}

Keyring vault.

func New

func New(vlt *vault.Vault) *Keyring

New keyring vault.

func (*Keyring) EdX25519Key

func (v *Keyring) EdX25519Key(kid keys.ID) (*keys.EdX25519Key, error)

EdX25519Key ...

func (*Keyring) EdX25519Keys

func (v *Keyring) EdX25519Keys() ([]*keys.EdX25519Key, error)

EdX25519Keys implements wormhole.Keyring.

func (*Keyring) EdX25519PublicKeys

func (v *Keyring) EdX25519PublicKeys() ([]*keys.EdX25519PublicKey, error)

EdX25519PublicKeys from the vault. Includes public keys of EdX25519Key's.

func (*Keyring) ExportKey

func (v *Keyring) ExportKey(id keys.ID, password string) (string, error)

ExportKey a Key from the vault.

func (*Keyring) FindEdX25519PublicKey

func (v *Keyring) FindEdX25519PublicKey(kid keys.ID) (*keys.EdX25519PublicKey, error)

FindEdX25519PublicKey searches all our EdX25519 public keys for a match to a converted X25519 public key.

func (*Keyring) Get

func (v *Keyring) Get(id keys.ID) (*api.Key, error)

Get key from vault.

func (*Keyring) ImportKey

func (v *Keyring) ImportKey(msg string, password string) (*api.Key, error)

ImportKey imports key into the vault.

func (*Keyring) List

func (v *Keyring) List() ([]*api.Key, error)

List keys from the vault.

func (*Keyring) Save

func (v *Keyring) Save(key *api.Key) error

Save key to vault.

func (*Keyring) X25519Keys

func (v *Keyring) X25519Keys() ([]*keys.X25519Key, error)

X25519Keys implements saltpack.Keyring.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL