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. - Signature
- Stark ECDSA signature.
Enums§
- Ecdsa
Sign Error - Errors when performing ECDSA
sign
operations. - Ecdsa
Verify Error - Errors when performing ECDSA
verify
operations.
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.