Documentation ¶
Index ¶
- Variables
- func InitialiseStore(vegaHome string, withFileWatcher bool) (*wstorev1.FileStore, error)
- func InitialiseStoreFromPaths(vegaPaths paths.Paths, withFileWatcher bool) (*wstorev1.FileStore, error)
- type Handler
- func (h *Handler) CreateWallet(name, passphrase string) (string, error)
- func (h *Handler) GenerateKeyPair(name, passphrase string, meta []wallet.Metadata) (wallet.KeyPair, error)
- func (h *Handler) GetPublicKey(name, pubKey string) (wallet.PublicKey, error)
- func (h *Handler) GetWalletPath(name string) (string, error)
- func (h *Handler) ImportWallet(name, passphrase, recoveryPhrase string, keyDerivationVersion uint32) error
- func (h *Handler) ListKeyPairs(name string) ([]wallet.KeyPair, error)
- func (h *Handler) ListPublicKeys(name string) ([]wallet.PublicKey, error)
- func (h *Handler) ListWallets() ([]string, error)
- func (h *Handler) LoginWallet(name, passphrase string) error
- func (h *Handler) SecureGenerateKeyPair(name, passphrase string, meta []wallet.Metadata) (string, error)
- func (h *Handler) SignAny(name string, inputData []byte, pubKey string) ([]byte, error)
- func (h *Handler) SignTx(name string, req *walletpb.SubmitTransactionRequest, height uint64, ...) (*commandspb.Transaction, error)
- func (h *Handler) TaintKey(name, pubKey, passphrase string) error
- func (h *Handler) UntaintKey(name string, pubKey string, passphrase string) error
- func (h *Handler) UpdateMeta(name, pubKey, passphrase string, meta []wallet.Metadata) error
- func (h *Handler) VerifyAny(inputData, sig []byte, pubKey string) (bool, error)
- func (h *Handler) WalletExists(name string) bool
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWalletDoesNotExists = errors.New("wallet does not exist")
Functions ¶
func InitialiseStore ¶
InitialiseStore builds a wallet Store specifically for users wallets.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CreateWallet ¶
func (*Handler) GenerateKeyPair ¶
func (*Handler) GetPublicKey ¶
func (*Handler) ImportWallet ¶
func (*Handler) ListKeyPairs ¶
func (*Handler) ListPublicKeys ¶
func (*Handler) ListWallets ¶
func (*Handler) LoginWallet ¶
func (*Handler) SecureGenerateKeyPair ¶
func (*Handler) SignTx ¶
func (h *Handler) SignTx(name string, req *walletpb.SubmitTransactionRequest, height uint64, chainID string) (*commandspb.Transaction, error)
func (*Handler) UntaintKey ¶
func (*Handler) UpdateMeta ¶
func (*Handler) WalletExists ¶
type Store ¶
type Store interface { UnlockWallet(ctx context.Context, name, passphrase string) error WalletExists(ctx context.Context, name string) (bool, error) CreateWallet(ctx context.Context, w wallet.Wallet, passphrase string) error UpdateWallet(ctx context.Context, w wallet.Wallet) error GetWallet(ctx context.Context, name string) (wallet.Wallet, error) GetWalletPath(name string) string ListWallets(ctx context.Context) ([]string, error) }
Store abstracts the underlying storage for wallet data.
Click to show internal directories.
Click to hide internal directories.