utils

package
v0.0.0-...-2a41acd Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	RootHash Hash
	PrvHash  Hash
	TxSet    TxSet
}

type Chain

type Chain struct {
	NetworkId uint32
	RootHash  Hash
	// contains filtered or unexported fields
}

func GenesisChain

func GenesisChain(id uint32, name Name) *Chain

type Cv

type Cv struct {
	Hash  Hash
	Value interface{}
}

func (Cv) String

func (cv Cv) String() string

type CvSet

type CvSet map[Hash]*Cv

func (CvSet) AddCv

func (set CvSet) AddCv(cv *Cv)

func (CvSet) Clean

func (set CvSet) Clean()

func (CvSet) Copy

func (set CvSet) Copy() CvSet

func (CvSet) HasCv

func (set CvSet) HasCv() bool

func (CvSet) String

func (set CvSet) String() string

type Hash

type Hash string // TODO [32]byte

type Name

type Name Hash

type Tx

type Tx struct {
	// contains filtered or unexported fields
}

type TxSet

type TxSet CvSet

Directories

Path Synopsis
bn256
Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
bn256/cloudflare
Package bn256 implements a particular bilinear group at the 128-bit security level.
Package bn256 implements a particular bilinear group at the 128-bit security level.
bn256/google
Package bn256 implements a particular bilinear group.
Package bn256 implements a particular bilinear group.
secp256k1
Package secp256k1 wraps the bitcoin secp256k1 C library.
Package secp256k1 wraps the bitcoin secp256k1 C library.
Package rlp implements the RLP serialization format.
Package rlp implements the RLP serialization format.

Jump to

Keyboard shortcuts

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