Modules§
Structs§
- Keychain
Signature - Keychain signature wrapping another signature with a user address This allows an access key to sign on behalf of a root account
- P256
Signature With PreHash - P256 signature with pre-hash flag
- P256
Signature With PreHash Flags - Fieldset that facilitates compacting the parent type. Used bytes: 1 | Unused bits: 7
- WebAuthn
Signature - WebAuthn signature with authenticator data
- WebAuthn
Signature Flags - Placeholder struct for when there is no need for a fieldset. Doesn’t actually write or read any data.
Enums§
- Primitive
Signature - Primitive signature types that can be used standalone or within a Keychain signature. This enum contains only the base signature types: Secp256k1, P256, and WebAuthn. It does NOT support Keychain signatures to prevent recursion.
- Tempo
Signature - AA transaction signature supporting multiple signature schemes
Constants§
- MIN_
AUTH_ 🔒DATA_ LEN - SIGNATURE_
TYPE_ KEYCHAIN - SIGNATURE_
TYPE_ P256 - Signature type identifiers Note: Secp256k1 has no identifier - detected by length (65 bytes)
- SIGNATURE_
TYPE_ WEBAUTHN
Functions§
- derive_
p256_ address - Derives a P256 address from public key coordinates
- serialize_
once_ 🔒lock serde - Helper function to serialize a
OnceLockas anOptionif it’s initialized. - verify_
p256_ 🔒signature_ internal - Verifies a P256 signature using the provided components
- verify_
webauthn_ 🔒data_ internal - Parses and validates WebAuthn data, returning the message hash for P256 verification ref: https://www.w3.org/TR/webauthn-2/#sctn-authenticator-data