Versions in this module Expand all Collapse all v1 v1.1.0 Dec 6, 2022 v1.0.0 Oct 24, 2021 Changes in this version + func GetDecryptPassphrase() (string, error) + func GetEncryptPassphrase() (string, error) + func GetPassword(input string) (string, error) + func NewRandomPrivateKey() (PublicKey, PrivateKey, 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 PrivateKey []byte + func MustPrivateKeyFromBase58(in string) PrivateKey + func PrivateKeyFromBase58(privkey string) (PrivateKey, error) + func PrivateKeyFromSolanaKeygenFile(file string) (PrivateKey, error) + func (k PrivateKey) PublicKey() PublicKey + func (k PrivateKey) String() string + type PublicKey [32]byte + func MustPublicKeyFromBase58(in string) PublicKey + func PublicKeyFromBase58(in string) (out PublicKey, err error) + func PublicKeyFromBytes(in []byte) (out PublicKey) + func (p *PublicKey) UnmarshalJSON(data []byte) (err error) + func (p PublicKey) Equals(pb PublicKey) bool + func (p PublicKey) IsZero() bool + func (p PublicKey) MarshalJSON() ([]byte, error) + func (p PublicKey) String() string + type SecretBoxer interface + Open func(in string) ([]byte, error) + Seal func(in []byte) (string, error) + WrapType func() string + func SecretBoxerForType(boxerType string) (SecretBoxer, error) + type Vault struct + Comment string + KeyBag []PrivateKey + Kind string + SecretBoxCiphertext string + SecretBoxWrap string + Version int + func MustGetWallet() *Vault + func NewVault() *Vault + func NewVaultFromSingleKey(privKey string) (*Vault, error) + func NewVaultFromWalletFile(filename string) (*Vault, error) + func (v *Vault) AddPrivateKey(privateKey PrivateKey) PublicKey + func (v *Vault) NewKeyPair() (pub 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