Constant ssi::aleo::OKP_CURVE

source ·
pub const OKP_CURVE: &'static str;
Available on crate feature aleo only.
Expand description

Unregistered JWK OKP curve for Aleo private keys in Aleo Testnet 1

OKP key type is defined in RFC 8037.

This curve type is intended to be used for Aleo private keys as follows:

  • key type (“kty”): “OKP”
  • private key (“d”) parameter: base64url-encoded Aleo private key (without Base58 encoding)
  • public key (“x”) parameter: base64url-encoded Aleo account address (without Base58 encoding)

An Aleo private key JWK is expected to contain an account address in the public key (“x”) parameter that corresponds to the private key (“d”) parameter, using [SIG_PARAMS], [COM_PARAMS] and [ENC_PARAMS].

An Aleo public key JWK contains the public key (“x”) parameter and MUST not contain a private key (“d”) parameter. An Aleo public key JWK is usable for verification of signatures using [ENC_PARAMS].