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
andSignature
- 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.