fn sign_es256(message: &str, ec_private_pem: &str) -> Result<Signature, &'static str> {
    Ok(
        SigningKey::from(
            get_ec_private_key_from_pem(ec_private_pem)?
        ).sign(message.as_bytes())
    )
}
/// Signs a message with ES256 signature using Elliptic Curves secret key in PEM format.
Signs a message with ES256 signature using Elliptic Curves secret key in PEM format.
Signs a message with ES256 signature using Elliptic Curves secret key in PEM format .
fn sign_es256(message: &str, ec_private_pem: &str) -> Result<Signature, &'static str> {
    Ok(
        SigningKey::from(
            get_ec_private_key_from_pem(ec_private_pem)?
        ).sign(message.as_bytes())
    )
}
fn sign_es256 ( message : & str , ec_private_pem : & str ) -> Result < Signature , & ' static str > { Ok ( SigningKey :: from ( get_ec_private_key_from_pem ( ec_private_pem ) ? ) . sign ( message . as_bytes ( ) ) ) }
Signs a message with ES256 signature using Elliptic Curves secret key in PEM format.
Signs a message with ES256 signature using Elliptic Curves secret key in PEM format .
message
&str
ec_private_pem
&str
message
&str
ec_private_pem
&str