Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHashMismatch = fmt.Errorf("Certificate hash does not match block hash")
View Source
var ErrPartialDuplicate = fmt.Errorf("Cannot add more than one signature per replica")
Functions ¶
Types ¶
type PartialCert ¶
type PartialCert struct {
// contains filtered or unexported fields
}
func NewPartialCert ¶
func NewPartialCert(signature *Signature, hash hotstuff.Hash) *PartialCert
func (PartialCert) BlockHash ¶
func (cert PartialCert) BlockHash() hotstuff.Hash
BlockHash returns the hash of the block that was signed
func (PartialCert) Signature ¶
func (cert PartialCert) Signature() hotstuff.Signature
Signature returns the signature
func (PartialCert) String ¶
func (cert PartialCert) String() string
func (PartialCert) ToBytes ¶
func (cert PartialCert) ToBytes() []byte
type PrivateKey ¶
type PrivateKey struct {
*ecdsa.PrivateKey
}
func (PrivateKey) PublicKey ¶
func (pk PrivateKey) PublicKey() hotstuff.PublicKey
type QuorumCert ¶
type QuorumCert struct {
// contains filtered or unexported fields
}
func NewQuorumCert ¶
func (QuorumCert) BlockHash ¶
func (qc QuorumCert) BlockHash() hotstuff.Hash
BlockHash returns the hash of the block for which the certificate was created
func (QuorumCert) Signatures ¶
func (qc QuorumCert) Signatures() map[hotstuff.ID]*Signature
func (QuorumCert) String ¶
func (qc QuorumCert) String() string
func (QuorumCert) ToBytes ¶
func (qc QuorumCert) ToBytes() []byte
Click to show internal directories.
Click to hide internal directories.