Documentation ¶
Index ¶
- func Generate(sigType crypto.SigType) ([]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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSignature ¶
RegisterSignature should be only used during init
func Sign ¶
Sign takes in signature type, private key and message. Returns a signature for that message. Valid sigTypes are: "secp256k1" and "bls"
Types ¶
Click to show internal directories.
Click to hide internal directories.