Documentation
¶
Index ¶
- func CheckTaskSignature(ctx context.Context, task *types.DioneTask, worker address.Address) error
- func Generate(sigType types.SigType) ([]byte, error)
- func RegisterSignature(typ types.SigType, vs SigShim)
- func Sign(sigType types.SigType, privkey []byte, msg []byte) (*types.Signature, error)
- func ToPublic(sigType types.SigType, pk []byte) ([]byte, error)
- func Verify(sig *types.Signature, addrByte []byte, msg []byte) error
- type SigShim
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTaskSignature ¶
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: "ed25519"
Types ¶
Click to show internal directories.
Click to hide internal directories.