Documentation ¶
Index ¶
- Variables
- func ComputeDomain(dt phase0.DomainType, forkVersion phase0.Version, ...) [32]byte
- func ComputeSigningRoot(obj ObjWithHashTreeRoot, d phase0.Domain) ([32]byte, error)
- func SignMessage(obj ObjWithHashTreeRoot, d phase0.Domain, sk *bls.SecretKey) (phase0.BLSSignature, error)
- func VerifySignature(obj ObjWithHashTreeRoot, d phase0.Domain, pkBytes, sigBytes []byte) (bool, error)
- func VerifySignatureRoot(root phase0.Root, d phase0.Domain, pkBytes, sigBytes []byte) (bool, error)
- type ObjWithHashTreeRoot
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLength = errors.New("invalid length") DomainBuilder = ComputeDomain(DomainTypeAppBuilder, phase0.Version{}, phase0.Root{}) DomainTypeBeaconProposer = phase0.DomainType{0x00, 0x00, 0x00, 0x00} DomainTypeAppBuilder = phase0.DomainType{0x00, 0x00, 0x00, 0x01} )
Functions ¶
func ComputeDomain ¶
func ComputeSigningRoot ¶
func ComputeSigningRoot(obj ObjWithHashTreeRoot, d phase0.Domain) ([32]byte, error)
func SignMessage ¶
func SignMessage(obj ObjWithHashTreeRoot, d phase0.Domain, sk *bls.SecretKey) (phase0.BLSSignature, error)
func VerifySignature ¶
Types ¶
type ObjWithHashTreeRoot ¶
Click to show internal directories.
Click to hide internal directories.