isaac

package
v2.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: GPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ManifestHint = hint.MustNewHint("digest-manifest-v0.0.1")

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	hint.BaseHinter
	// contains filtered or unexported fields
}

func NewManifest

func NewManifest(
	height base.Height,
	previous,
	proposal,
	operationsTree,
	statesTree,
	suffrage util.Hash,
	proposedAt time.Time,
) Manifest

func (*Manifest) DecodeBSON

func (m *Manifest) DecodeBSON(b []byte, enc *bsonenc.Encoder) error

func (Manifest) Hash

func (m Manifest) Hash() util.Hash

func (Manifest) Height

func (m Manifest) Height() base.Height

func (Manifest) IsValid

func (m Manifest) IsValid([]byte) error

func (Manifest) MarshalBSON

func (m Manifest) MarshalBSON() ([]byte, error)

func (Manifest) MarshalJSON

func (m Manifest) MarshalJSON() ([]byte, error)

func (Manifest) OperationsTree

func (m Manifest) OperationsTree() util.Hash

func (Manifest) Previous

func (m Manifest) Previous() util.Hash

func (Manifest) Proposal

func (m Manifest) Proposal() util.Hash

func (Manifest) ProposedAt

func (m Manifest) ProposedAt() time.Time

func (Manifest) StatesTree

func (m Manifest) StatesTree() util.Hash

func (Manifest) Suffrage

func (m Manifest) Suffrage() util.Hash

func (*Manifest) UnmarshalJSON

func (m *Manifest) UnmarshalJSON(b []byte) error

type ManifestBSONUnmarshaler

type ManifestBSONUnmarshaler struct {
	Hint           string      `bson:"_hint"`
	ProposedAt     time.Time   `bson:"proposed_at"`
	StatesTree     string      `bson:"states_tree"`
	Hash           string      `bson:"hash"`
	Previous       string      `bson:"previous"`
	Proposal       string      `bson:"proposal"`
	OperationsTree string      `bson:"operations_tree"`
	Suffrage       string      `bson:"suffrage"`
	Height         base.Height `bson:"height"`
}

type ManifestJSONMarshaler

type ManifestJSONMarshaler struct {
	ProposedAt     time.Time `json:"proposed_at"`
	StatesTree     util.Hash `json:"states_tree"`
	Hash           util.Hash `json:"hash"`
	Previous       util.Hash `json:"previous"`
	Proposal       util.Hash `json:"proposal"`
	OperationsTree util.Hash `json:"operations_tree"`
	Suffrage       util.Hash `json:"suffrage"`
	hint.BaseHinter
	Height base.Height `json:"height"`
}

type ManifestJSONUnmarshaler

type ManifestJSONUnmarshaler struct {
	ProposedAt     localtime.Time        `json:"proposed_at"`
	Hash           valuehash.HashDecoder `json:"hash"`
	Previous       valuehash.HashDecoder `json:"previous"`
	Proposal       valuehash.HashDecoder `json:"proposal"`
	OperationsTree valuehash.HashDecoder `json:"operations_tree"`
	StatesTree     valuehash.HashDecoder `json:"states_tree"`
	Suffrage       valuehash.HashDecoder `json:"suffrage"`
	Height         base.HeightDecoder    `json:"height"`
}

Jump to

Keyboard shortcuts

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