commoncoin

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0, BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package commoncoin implements a common coin abstraction needed by the HoneyBadgerBFT for synchronization and randomness.

See A. Miller et al. The honey badger of bft protocols. 2016. <https://eprint.iacr.org/2016/199.pdf>, Appendix C.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBLSCommonCoin added in v0.3.0

func NewBLSCommonCoin(dkShare tcrypto.DKShare, salt []byte, allRandom bool) hbbft.CommonCoin

Types

type BLSCommonCoinMsg added in v0.3.0

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

func (*BLSCommonCoinMsg) Bytes added in v0.3.0

func (m *BLSCommonCoinMsg) Bytes() []byte

func (*BLSCommonCoinMsg) FromBytes added in v0.3.0

func (m *BLSCommonCoinMsg) FromBytes(buf []byte) error

func (*BLSCommonCoinMsg) Read added in v0.3.0

func (m *BLSCommonCoinMsg) Read(r io.Reader) error

func (*BLSCommonCoinMsg) Write added in v0.3.0

func (m *BLSCommonCoinMsg) Write(w io.Writer) error

Jump to

Keyboard shortcuts

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