channel

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VerifyRequest

type VerifyRequest struct {
	common.BaseRequest
	Amount    types.XRPCurrencyAmount `json:"amount"`
	ChannelID string                  `json:"channel_id"`
	PublicKey string                  `json:"public_key"`
	Signature string                  `json:"signature"`
}

The channel_verify method checks the validity of a signature that can be used to redeem a specific amount of XRP from a payment channel.

func (*VerifyRequest) APIVersion added in v0.1.3

func (*VerifyRequest) APIVersion() int

func (*VerifyRequest) Method

func (*VerifyRequest) Method() string

func (*VerifyRequest) Validate

func (*VerifyRequest) Validate() error

TODO: Implement V2

type VerifyResponse

type VerifyResponse struct {
	SignatureVerified bool `json:"signature_verified"`
}

The expected response from the channel_verify method.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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