sign

open fun sign(digest: Array<Byte>, curve: Curve): Array<Byte>

Signs a digest using ECDSA and given curve.

Return

Signature as a Non-null block of data

Parameters

pk

Non-null pointer to a Private key

digest

Non-null digest block of data

curve

Eliptic curve