requests

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: BSD-2-Clause Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsistencyProof

type ConsistencyProof struct {
	NewSize uint64 `ascii:"new_size"`
	OldSize uint64 `ascii:"old_size"`
}

func (*ConsistencyProof) FromASCII

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

func (*ConsistencyProof) ToASCII

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

type Cosignature

type Cosignature struct {
	Cosignature types.Signature `ascii:"cosignature"`
	KeyHash     types.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 {
	LeafHash types.Hash `ascii:"leaf_hash"`
	TreeSize uint64     `ascii:"tree_size"`
}

func (*InclusionProof) FromASCII

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

func (*InclusionProof) ToASCII

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

type Leaf

type Leaf struct {
	ShardHint       uint64          `ascii:"shard_hint"`
	Preimage        types.Hash      `ascii:"preimage"`
	Signature       types.Signature `ascii:"signature"`
	VerificationKey types.PublicKey `ascii:"verification_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 `ascii:"start_size"`
	EndSize   uint64 `ascii:"end_size"`
}

func (*Leaves) FromASCII

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

func (*Leaves) ToASCII

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

Jump to

Keyboard shortcuts

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