secret

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUninitializedPrivateKey = errors.New("private key should be initialized")
	EvmSecretsNotInitialized   = errors.New("evm secrets should be initialized")
)

Functions

This section is empty.

Types

type EVMSecrets

type EVMSecrets map[string]*ecdsa.PrivateKey

func (*EVMSecrets) PrivateKey

func (e *EVMSecrets) PrivateKey(chain string) *ecdsa.PrivateKey

func (*EVMSecrets) PublicKey

func (e *EVMSecrets) PublicKey(chain string) common.Address

type NearSecrets

type NearSecrets struct {
	// contains filtered or unexported fields
}

func (*NearSecrets) PrivateKey

func (s *NearSecrets) PrivateKey() common.KeyPair

func (*NearSecrets) PublicKey

func (s *NearSecrets) PublicKey() string

type Secret

type Secret struct {
	// contains filtered or unexported fields
}

func (*Secret) Bouncer

func (s *Secret) Bouncer() *ecdsa.PrivateKey

func (*Secret) EVM

func (s *Secret) EVM() *EVMSecrets

func (*Secret) Near

func (s *Secret) Near() *NearSecrets

func (*Secret) Solana

func (s *Secret) Solana() *SolanaSecrets

type SolanaSecrets

type SolanaSecrets struct {
	// contains filtered or unexported fields
}

func NewSolanaSecrets

func NewSolanaSecrets(key solana.PrivateKey) *SolanaSecrets

func (*SolanaSecrets) PrivateKey

func (s *SolanaSecrets) PrivateKey() solana.PrivateKey

func (*SolanaSecrets) PublicKey

func (s *SolanaSecrets) PublicKey() solana.PublicKey

type Vault

type Vault interface {
	Secret() *Secret
}

type VaultConfig

type VaultConfig struct {
	Address string `fig:"address,required"`
	Mount   string `fig:"mount,required"`
	Secret  string `fig:"secret,required"`
	Token   string `fig:"token,required"`
}

type Vaulter

type Vaulter interface {
	Vault() Vault
}

func NewVaulter

func NewVaulter(getter kv.Getter, log *logan.Entry) Vaulter

Jump to

Keyboard shortcuts

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