Documentation
¶
Overview ¶
certchain package is a testing utility for generating and validating finality certificates. It has no effect on the consensus protocol.
Index ¶
- type CertChain
- func (cc *CertChain) Generate(ctx context.Context, length uint64) ([]*certs.FinalityCertificate, error)
- func (cc *CertChain) GetCommittee(ctx context.Context, instance uint64) (*gpbft.Committee, error)
- func (cc *CertChain) GetProposal(ctx context.Context, instance uint64) (*gpbft.SupplementalData, *gpbft.ECChain, error)
- func (cc *CertChain) Validate(ctx context.Context, crts []*certs.FinalityCertificate) error
- type FinalityCertificateProvider
- type Option
- type SignVerifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertChain ¶
type CertChain struct {
// contains filtered or unexported fields
}
func (*CertChain) GetCommittee ¶
func (*CertChain) GetProposal ¶
type Option ¶
type Option func(*options) error
func WithManifest ¶
func WithSignVerifier ¶
func WithSignVerifier(sv SignVerifier) Option
Click to show internal directories.
Click to hide internal directories.