Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2021 Changes in this version + func CheckBlockSignature(ctx context.Context, blk *types.BlockHeader, worker address.Address) error + func Generate(sigType crypto.SigType) ([]byte, error) + func GenerateFromSeed(sigType crypto.SigType, seed []byte) ([]byte, error) + func RegisterSignature(typ crypto.SigType, vs SigShim) + func Sign(sigType crypto.SigType, privkey []byte, msg []byte) (*crypto.Signature, error) + func ToPublic(sigType crypto.SigType, pk []byte) ([]byte, error) + func Verify(sig *crypto.Signature, addr address.Address, msg []byte) error + type SigShim interface + GenPrivate func() ([]byte, error) + GenPrivateFromSeed func(seed []byte) ([]byte, error) + Sign func(pk []byte, msg []byte) ([]byte, error) + ToPublic func(pk []byte) ([]byte, error) + Verify func(sig []byte, a address.Address, msg []byte) error