vault

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterVaultIPFSService added in v0.3.0

func RegisterVaultIPFSService(cctx client.Context, mux *runtime.ServeMux, node common.IPFSNode) error

It creates a new VaultService and registers it with the gRPC server

Types

type VaultService

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

`VaultService` is a type that implements the `v1.VaultServer` interface, and has a field called `highway` of type `*HighwayNode`. @property - `v1.VaultServer`: This is the interface that the Vault service implements. @property highway - This is the HighwayNode that the VaultService is running on.

func (*VaultService) CreateAccount

CreateAccount derives a new key from the private key and returns the public key.

func (*VaultService) DeleteAccount

DeleteAccount deletes the account with the given address.

func (*VaultService) ListAccounts

ListAccounts lists all the accounts derived from the private key.

func (*VaultService) NewWallet

Register registers a new keypair and returns the public key.

func (*VaultService) Refresh

Refresh refreshes the keypair and returns the public key.

func (*VaultService) SignTransaction

Sign signs the data with the private key and returns the signature.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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