Crate essential_sign

Source
Expand description

A minimal crate providing Essential’s generic signing, verification and public key recovery functions implemented using secp256k1 and the essential_hash crate.

§Signing Hashes

In cases where the Hash (or ContentAddress) is already known, the following are more efficient as they avoid hashing a second time:

Re-exports§

pub use secp256k1;

Modules§

contract
Signing, recovery and verification for contracts.
encode
Functions for encoding signatures and public keys.

Functions§

recover_from_message
Recover public key from signed secp256k1::Message and Signature
recover_hash
Recover the PublicKey from the signed hash.
sign_hash
Sign directly over a hash with the given secret key using secp256k1.
sign_message
Sign directly over the given Message with secret key using secp256k1 curve.
verify_hash
Verify a signature over the given hash.
verify_message
Verify the given PublicKey against the message & signature.