registry

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EthereumWalletTypeKeyStore ethereumWalletType = "key-store"
	EthereumWalletTypeClef     ethereumWalletType = "clef"
)

Variables

View Source
var (
	ErrWrongPassphrase = errors.New("wrong passphrase")
)

Functions

This section is empty.

Types

type EthereumClefWallet

type EthereumClefWallet struct {
	Name           string `json:"name"`
	AccountAddress string `json:"account-address"`
	ClefAddress    string `json:"clef-address"`
}

func (EthereumClefWallet) ETHWallet

func (e EthereumClefWallet) ETHWallet()

type EthereumKeyStoreWallet

type EthereumKeyStoreWallet struct {
	Name       string `json:"name"`
	Passphrase string `json:"passphrase"`
}

func (EthereumKeyStoreWallet) ETHWallet

func (e EthereumKeyStoreWallet) ETHWallet()

type EthereumWalletDetails

type EthereumWalletDetails interface {
	ETHWallet()
}

type Loader

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

func NewLoader

func NewLoader(vegaPaths paths.Paths, passphrase string) (*Loader, error)

func (*Loader) Get

func (l *Loader) Get(passphrase string) (*Registry, error)

func (*Loader) RegistryFilePath

func (l *Loader) RegistryFilePath() string

func (*Loader) Save

func (l *Loader) Save(registry *Registry, passphrase string) error

type RegisteredEthereumWallet

type RegisteredEthereumWallet struct {
	Type    ethereumWalletType    `json:"type"`
	Details EthereumWalletDetails `json:"details"`
}

func (*RegisteredEthereumWallet) UnmarshalJSON

func (rw *RegisteredEthereumWallet) UnmarshalJSON(data []byte) error

type RegisteredTendermintPubkey

type RegisteredTendermintPubkey struct {
	Pubkey string `json:"pubkey"`
}

type RegisteredVegaWallet

type RegisteredVegaWallet struct {
	Name       string `json:"name"`
	Passphrase string `json:"passphrase"`
}

type Registry

type Registry struct {
	Tendermint *RegisteredTendermintPubkey `json:"tendermint,omitempty"`
	Ethereum   *RegisteredEthereumWallet   `json:"ethereum,omitempty"`
	Vega       *RegisteredVegaWallet       `json:"vega,omitempty"`
}

Jump to

Keyboard shortcuts

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