Documentation
¶
Index ¶
- func RegisterVaultIPFSService(cctx client.Context, mux *runtime.ServeMux, node common.IPFSNode) error
- type VaultService
- func (v *VaultService) DeleteAccount(ctx context.Context, req *v1.DeleteAccountRequest) (*v1.DeleteAccountResponse, error)
- func (v *VaultService) ListAccounts(ctx context.Context, req *v1.ListAccountsRequest) (*v1.ListAccountsResponse, error)
- func (v *VaultService) Refresh(ctx context.Context, req *v1.RefreshRequest) (*v1.RefreshResponse, error)
- func (v *VaultService) RegisterFinish(ctx context.Context, req *v1.RegisterFinishRequest) (*v1.RegisterFinishResponse, error)
- func (v *VaultService) RegisterStart(ctx context.Context, req *v1.RegisterStartRequest) (*v1.RegisterStartResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) DeleteAccount ¶
func (v *VaultService) DeleteAccount(ctx context.Context, req *v1.DeleteAccountRequest) (*v1.DeleteAccountResponse, error)
DeleteAccount deletes the account with the given address.
func (*VaultService) ListAccounts ¶
func (v *VaultService) ListAccounts(ctx context.Context, req *v1.ListAccountsRequest) (*v1.ListAccountsResponse, error)
ListAccounts lists all the accounts derived from the private key.
func (*VaultService) Refresh ¶
func (v *VaultService) Refresh(ctx context.Context, req *v1.RefreshRequest) (*v1.RefreshResponse, error)
Refresh refreshes the keypair and returns the public key.
func (*VaultService) RegisterFinish ¶ added in v0.3.1
func (v *VaultService) RegisterFinish(ctx context.Context, req *v1.RegisterFinishRequest) (*v1.RegisterFinishResponse, error)
CreateAccount derives a new key from the private key and returns the public key.
func (*VaultService) RegisterStart ¶ added in v0.3.1
func (v *VaultService) RegisterStart(ctx context.Context, req *v1.RegisterStartRequest) (*v1.RegisterStartResponse, error)
Register registers a new keypair and returns the public key.
Click to show internal directories.
Click to hide internal directories.