Expand description
Internal cryptographic primitives used across the Intents ecosystem.
This crate defines lightweight traits such as Payload and
SignedPayload that allow Intents to treat messages from different
signing standards uniformly. Implementations of these traits live in
companion crates like tip191, erc191, or bip322 and are primarily
intended for internal use.
Modules§
Structs§
- Ed25519
- Ed25519
Public Key - Ed25519
Signature - P256
- P256
Compressed Public Key - Compressed public key, i.e.
xcoordinate with leading SEC1 tag byte - P256
Signature - P256
Uncompressed Public Key - Concatenated
x || ycoordinates with no leading SEC1 tag byte - Secp256k1
- Secp256k1
Public Key - Secp256k1
Signature
Enums§
Traits§
- Curve
- Payload
- Data that can be deterministically hashed for signing or verification.
- Signed
Payload - Extension of
Payloadfor types that include a signature. - Typed
Curve
Functions§
- compress_
public_ key - Converts from untagged uncompressed form (i.e. concatenated
x || ycoordinates with no leading SEC1 tag byte) into compressed form (i.e.xcoordinate with leading SEC1 tag byte)
Type Aliases§
- Crypto
Hash - Raw type for 32 bytes of the hash.