requests

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: BSD-2-Clause Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsistencyProof

type ConsistencyProof struct {
	OldSize uint64
	NewSize uint64
}

func (*ConsistencyProof) FromURL added in v0.0.5

func (req *ConsistencyProof) FromURL(url string) (err error)

FromURL parses request parameters from a URL that is not slash-terminated

func (*ConsistencyProof) ToURL added in v0.0.5

func (req *ConsistencyProof) ToURL(url string) string

ToURL encodes request parameters at the end of a slash-terminated URL

type Cosignature

type Cosignature struct {
	Cosignature types.Signature `ascii:"cosignature"`
	KeyHash     merkle.Hash     `ascii:"key_hash"`
}

func (*Cosignature) FromASCII

func (req *Cosignature) FromASCII(r io.Reader) error

func (*Cosignature) ToASCII

func (req *Cosignature) ToASCII(w io.Writer) error

type InclusionProof

type InclusionProof struct {
	TreeSize uint64
	LeafHash merkle.Hash
}

func (*InclusionProof) FromURL added in v0.0.5

func (req *InclusionProof) FromURL(url string) (err error)

FromURL parses request parameters from a URL that is not slash-terminated

func (*InclusionProof) ToURL added in v0.0.5

func (req *InclusionProof) ToURL(url string) string

ToURL encodes request parameters at the end of a slash-terminated URL

type Leaf

type Leaf struct {
	ShardHint  uint64          `ascii:"shard_hint"`
	Message    merkle.Hash     `ascii:"message"`
	Signature  types.Signature `ascii:"signature"`
	PublicKey  types.PublicKey `ascii:"public_key"`
	DomainHint string          `ascii:"domain_hint"`
}

func (*Leaf) FromASCII

func (req *Leaf) FromASCII(r io.Reader) error

func (*Leaf) ToASCII

func (req *Leaf) ToASCII(w io.Writer) error

type Leaves

type Leaves struct {
	StartSize uint64
	EndSize   uint64
}

func (*Leaves) FromURL added in v0.0.5

func (req *Leaves) FromURL(url string) (err error)

FromURL parses request parameters from a URL that is not slash-terminated

func (*Leaves) ToURL added in v0.0.5

func (req *Leaves) ToURL(url string) string

ToURL encodes request parameters at the end of a slash-terminated URL

Jump to

Keyboard shortcuts

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