Expand description
High-level utilities for cryptographic operations used in Starknet.
Structs§
- Extended
Signature - Stark ECDSA signature with
v, useful for recovering the public key. - Hash
Function - A hash function that is used in Starknet.
- Signature
- Stark ECDSA signature.
- Stateful
Hasher - A stateful hasher that can be updated with messages and finalized to produce a hash.
Enums§
- Ecdsa
Sign Error - Errors when performing ECDSA
signoperations. - Ecdsa
Verify Error - Errors when performing ECDSA
verifyoperations.
Functions§
- compute_
hash_ on_ elements - Computes the Pedersen hash of a list of
Felt. - ecdsa_
sign - Signs a hash using deterministic ECDSA on the STARK curve. The signature returned can be used to recover the public key.
- ecdsa_
verify - Verified an ECDSA signature on the STARK curve.
- pedersen_
hash - Computes the Starkware version of the Pedersen hash of x and y. All inputs are little-endian.