Function kvarn_auth::ecdsa_sk

source ·
pub fn ecdsa_sk(secret: &[u8]) -> SigningKey
Available on crate feature ecdsa only.
Expand description

Get the signing key for secret.

Sharing verifying key

Get the verifying key by using the verifying_key method on the returned value. You can then use the methods to_encoded_point and from_encoded_point (or any similar methods, like the Serialize serde implementation of the struct) to serialize and share the verifying key, and then constructing ValidationAlgo::EcdsaP256 with that key.