Expand description
This crate contains the raw base types (without implementation) for the World ID Protocol.
It implements basic primitives such as field elements, proofs, the format of requests and responses, etc.
Importantly, this crate keeps dependencies to a minimum and does not implement any logic beyond serialization and deserialization.
Re-exports§
pub use credential::Credential;pub use credential::CredentialVersion;pub use proof::WorldIdProof;
Modules§
- authenticator
- Contains types related to the Authenticator.
- circuit_
inputs - Contains the raw circuit input types for the World ID Protocol.
- credential
- Base definition of a “Credential” in the World ID Protocol.
- merkle
- Contains base types for operations with Merkle trees.
- oprf
- Contains types specifically related to the OPRF services.
- proof
- Contains the quintessential proof type.
- rp
- Contains types specifically related to relying parties.
- serde_
utils - Serialization utilities for consistent hex encoding across the protocol.
- sponge
- SAFE-style sponge utilities and helpers.
Structs§
- Config
- Global configuration to interact with the different components of the Protocol.
- Field
Element - Represents a field element of the base field (
Fq) in the World ID Protocol.
Enums§
- Primitive
Error - Generic errors that may occur with basic serialization and deserialization.
Constants§
- TREE_
DEPTH - The depth of the Merkle tree used in the World ID Protocol for the
WorldIDRegistrycontract.
Type Aliases§
- Scalar
Field - The scalar field used in the World ID Protocol.