rpc

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CreateSessionRoute = servicePrefix + "CreateSession"

CreateSessionRoute is the RPC to create a session.

View Source
const DropSessionRoute = servicePrefix + "DropSession"

DropSessionRoute is the RPC to create a session.

View Source
const StatusRoute = servicePrefix + "Status"

StatusRoute is the RPC to inquiry the status of the wallet.

Variables

View Source
var OpenRoutes = hashset.New()

OpenRoutes is the set of RPC that do not require session authentication.

Functions

This section is empty.

Types

type AuthToken added in v0.4.0

type AuthToken struct {
	AccessToken string `json:"access-token"`
	Time        int64  `json:"time"`
	Sig         []byte `json:"signature,omitempty"`
}

AuthToken is what we put in the authorization header.

func (*AuthToken) AsSignable added in v0.4.0

func (a *AuthToken) AsSignable() ([]byte, error)

AsSignable returns the signable payload of the struct.

func (*AuthToken) Verify added in v0.4.0

func (a *AuthToken) Verify(edPk ed25519.PublicKey) bool

Verify the token using ed25519.

Directories

Path Synopsis
This package represents the GRPC server exposing functions to interoperate with the node components as well as the wallet
This package represents the GRPC server exposing functions to interoperate with the node components as well as the wallet

Jump to

Keyboard shortcuts

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