unit

package
v0.0.0-...-dfb9311 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Embed

func Embed(u gomel.Unit, dag gomel.Dag) gomel.Unit

Embed transforms the given unit into unitInDag and computes forking height. The returned unit overrides AboveWithinProc method to use that forking height.

func FromPreunit

func FromPreunit(pu gomel.Preunit, parents []gomel.Unit) gomel.Unit

FromPreunit creates a new freeUnit based on the given preunit and a list of parents.

func New

func New(creator uint16, epoch gomel.EpochID, parents []gomel.Unit, level int, data core.Data, rsData []byte, pk gomel.PrivateKey) gomel.Unit

New constructs a new freeUnit with given set of parents and signs it with provided private key.

func NewPreunit

func NewPreunit(id uint64, crown *gomel.Crown, data core.Data, rsData []byte, signature gomel.Signature) gomel.Preunit

NewPreunit constructs new preunit from the provided data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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