commoncoin

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 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

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

Types

type BlsCommonCoinMsg

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

func (*BlsCommonCoinMsg) Bytes

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

func (*BlsCommonCoinMsg) FromBytes

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

func (*BlsCommonCoinMsg) Read

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

func (*BlsCommonCoinMsg) Write

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