common

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point struct {
	Slot uint64
	Hash []byte
	// contains filtered or unexported fields
}

func NewPoint

func NewPoint(slot uint64, blockHash []byte) Point

func NewPointOrigin

func NewPointOrigin() Point

func (*Point) MarshalCBOR

func (p *Point) MarshalCBOR() ([]byte, error)

func (*Point) UnmarshalCBOR

func (p *Point) UnmarshalCBOR(data []byte) error

A "point" can sometimes be empty, but the CBOR library gets grumpy about this when doing automatic decoding from an array, so we have to handle this case specially

Jump to

Keyboard shortcuts

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