function

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodVersion   jsonrpc.Method = "function.version"
	MethodVerifySig jsonrpc.Method = "function.verify_sig"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthResponse added in v0.3.0

type HealthResponse struct {
	Healthy bool   `json:"healthy"`
	Version string `json:"version"`
}

type TxSignature

type TxSignature struct {
	SignatureBytes []byte `json:"sig,omitempty"`
	SignatureType  string `json:"type,omitempty"`
}

type VerifySignatureRequest

type VerifySignatureRequest struct {
	Signature *TxSignature   `json:"signature,omitempty"`
	Sender    types.HexBytes `json:"sender,omitempty"`
	Msg       []byte         `json:"msg,omitempty"`
}

type VerifySignatureResponse

type VerifySignatureResponse struct {
	Valid  bool   `json:"valid"`
	Reason string `json:"reason,omitempty"`
}

Jump to

Keyboard shortcuts

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