factom

package
v1.1.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagDBlock = iota // Blockchain structs
	TagABlock
	TagFBlock
	TagECBlock
	TagEBlock
	TagEntry
	TagTX

	TagFCT // Balances
	TagEC
)

Variables

This section is empty.

Functions

func ReadObjectFile

func ReadObjectFile(buff []byte, logger log.Logger, fn func(header *Header, object interface{})) error

Types

type EntryMetadata

type EntryMetadata struct {
	DBlockKeyMR          [32]byte `json:"dblockKeyMR,omitempty" form:"dblockKeyMR" query:"dblockKeyMR" validate:"required"`
	DBlockHeight         uint64   `json:"dblockHeight" form:"dblockHeight" query:"dblockHeight" validate:"required"`
	EBlockKeyMR          [32]byte `json:"eblockKeyMR,omitempty" form:"eblockKeyMR" query:"eblockKeyMR" validate:"required"`
	EBlockSequenceNumber uint64   `json:"eblockSequenceNumber" form:"eblockSequenceNumber" query:"eblockSequenceNumber" validate:"required"`
	EntryIndex           uint64   `json:"entryIndex" form:"entryIndex" query:"entryIndex" validate:"required"`
	// contains filtered or unexported fields
}

func (*EntryMetadata) Copy

func (v *EntryMetadata) Copy() *EntryMetadata

func (*EntryMetadata) CopyAsInterface

func (v *EntryMetadata) CopyAsInterface() interface{}

func (*EntryMetadata) Equal

func (v *EntryMetadata) Equal(u *EntryMetadata) bool

func (*EntryMetadata) IsValid

func (v *EntryMetadata) IsValid() error

func (*EntryMetadata) MarshalBinary

func (v *EntryMetadata) MarshalBinary() ([]byte, error)

func (*EntryMetadata) MarshalJSON

func (v *EntryMetadata) MarshalJSON() ([]byte, error)

func (*EntryMetadata) UnmarshalBinary

func (v *EntryMetadata) UnmarshalBinary(data []byte) error

func (*EntryMetadata) UnmarshalBinaryFrom

func (v *EntryMetadata) UnmarshalBinaryFrom(rd io.Reader) error

func (*EntryMetadata) UnmarshalJSON

func (v *EntryMetadata) UnmarshalJSON(b []byte) error
type Header struct {
	Tag  byte
	Size uint64
}

func (*Header) MarshalBinary

func (h *Header) MarshalBinary() []byte

func (*Header) UnmarshalBinary

func (h *Header) UnmarshalBinary(data []byte) []byte

Jump to

Keyboard shortcuts

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