Function ssi_jwk::aleo::sign

source ยท
pub fn sign(msg: &[u8], key: &JWK) -> Result<Vec<u8>, AleoSignError>
Available on crate feature aleo only.
Expand description

Create an Aleo signature.

The message is signed using ENC_PARAMS and a View Key derived from the given JWK private key with SIG_PARAMS and COM_PARAMS.

The JWK private key key is expected to use key type OKP with curve according to OKP_CURVE.