Documentation ¶
Index ¶
- type ArgsHeaderSigVerifier
- type HeaderSigVerifier
- func (hsv *HeaderSigVerifier) IsInterfaceNil() bool
- func (hsv *HeaderSigVerifier) VerifyRandSeed(header data.HeaderHandler) error
- func (hsv *HeaderSigVerifier) VerifyRandSeedAndLeaderSignature(header data.HeaderHandler) error
- func (hsv *HeaderSigVerifier) VerifySignature(header data.HeaderHandler) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgsHeaderSigVerifier ¶
type ArgsHeaderSigVerifier struct { Marshalizer marshal.Marshalizer Hasher hashing.Hasher NodesCoordinator sharding.NodesCoordinator MultiSigVerifier crypto.MultiSigVerifier SingleSigVerifier crypto.SingleSigner KeyGen crypto.KeyGenerator }
ArgsHeaderSigVerifier is used to store all components that are needed to create a new HeaderSigVerifier
type HeaderSigVerifier ¶
type HeaderSigVerifier struct {
// contains filtered or unexported fields
}
HeaderSigVerifier is component used to check if a header is valid
func NewHeaderSigVerifier ¶
func NewHeaderSigVerifier(arguments *ArgsHeaderSigVerifier) (*HeaderSigVerifier, error)
NewHeaderSigVerifier will create a new instance of HeaderSigVerifier
func (*HeaderSigVerifier) IsInterfaceNil ¶
func (hsv *HeaderSigVerifier) IsInterfaceNil() bool
IsInterfaceNil will check if interface is nil
func (*HeaderSigVerifier) VerifyRandSeed ¶
func (hsv *HeaderSigVerifier) VerifyRandSeed(header data.HeaderHandler) error
VerifyRandSeed will check if rand seed is correct
func (*HeaderSigVerifier) VerifyRandSeedAndLeaderSignature ¶
func (hsv *HeaderSigVerifier) VerifyRandSeedAndLeaderSignature(header data.HeaderHandler) error
VerifyRandSeedAndLeaderSignature will check if rand seed and leader signature is correct
func (*HeaderSigVerifier) VerifySignature ¶
func (hsv *HeaderSigVerifier) VerifySignature(header data.HeaderHandler) error
VerifySignature will check if signature is correct
Click to show internal directories.
Click to hide internal directories.