Documentation
¶
Overview ¶
Package crypto provides implementations of the Crypto interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrHashMismatch is the error used when a partial certificate hash does not match the hash of a block. ErrHashMismatch = fmt.Errorf("certificate hash does not match block hash") // ErrPartialDuplicate is the error used when two or more signatures were created by the same replica. ErrPartialDuplicate = fmt.Errorf("cannot add more than one signature per replica") // ErrViewMismatch is the error used when timeouts have different views. ErrViewMismatch = fmt.Errorf("timeout views do not match") // ErrNotAQuorum is the error used when a quorum is not reached. ErrNotAQuorum = fmt.Errorf("not a quorum") // ErrWrongType is the error used when an incompatible type is encountered. ErrWrongType = fmt.Errorf("incompatible type") )
Functions ¶
Types ¶
type Bitfield ¶ added in v0.3.0
type Bitfield []byte
Bitfield is an IDSet implemented by a bitfield. To check if an ID 'i' is present in the set, we simply check if the bit at i-1 is set (because IDs start at 1). This scales poorly if IDs are not sequential.
Directories
¶
Path | Synopsis |
---|---|
Package bls12 implements the crypto primitives used by HotStuff using curve BLS12-381.
|
Package bls12 implements the crypto primitives used by HotStuff using curve BLS12-381. |
Package ecdsa provides a crypto implementation for HotStuff using Go's 'crypto/ecdsa' package.
|
Package ecdsa provides a crypto implementation for HotStuff using Go's 'crypto/ecdsa' package. |
Package keygen provides helper methods for generating, serializing, and deserializing public keys, private keys and certificates.
|
Package keygen provides helper methods for generating, serializing, and deserializing public keys, private keys and certificates. |
Click to show internal directories.
Click to hide internal directories.