Documentation ¶
Index ¶
- Variables
- func InitialiseStore(vegaHome string) (*wstorev1.Store, error)
- func InitialiseStoreFromPaths(vegaPaths paths.Paths) (*wstorev1.Store, error)
- type Handler
- func (h *Handler) CreateWallet(name, passphrase string) (string, error)
- func (h *Handler) GenerateKeyPair(name, passphrase string, meta []wallet.Meta) (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, version 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) LogoutWallet(name string)
- func (h *Handler) SecureGenerateKeyPair(name, passphrase string, meta []wallet.Meta) (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.Meta) 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) LogoutWallet ¶
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 { WalletExists(ctx context.Context, name string) (bool, error) SaveWallet(ctx context.Context, w wallet.Wallet, passphrase string) error GetWallet(ctx context.Context, name, passphrase 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.