function

package
v0.8.3-preview.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 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 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