vault

package
v0.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterVaultService

func RegisterVaultService(cctx client.Context, mux *runtime.ServeMux) 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) Authorize

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

func (*VaultService) Challenge

Challeng returns a random challenge for the client to sign.

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) Publish

CreateAccount derives a new key from the private key 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