ic_auth_types
IC-Auth is a web authentication system based on the Internet Computer.
ic_auth_types is a Rust types library used for integrating with IC-Auth. It provides essential data structures and utilities for working with Internet Computer authentication.
Features
- Efficient Byte Handling: Includes
ByteBufB64andByteArrayB64types for efficient serialization and deserialization of binary data with automatic Base64URL encoding for human-readable formats. - Unique Identifiers: Provides
Xidtype, a compact and lexicographically sortable globally unique identifier (12 bytes vs UUID's 16 bytes). - Authentication Primitives: Includes types for delegations, signed delegations, and authentication responses.
- Candid Compatibility: All types implement
CandidTypefor seamless integration with the Internet Computer. - Serde Support: Full serialization/deserialization support for both human-readable (JSON) and binary formats (CBOR).
Usage
Add this to your Cargo.toml:
[]
= "0.4"
Enables interoperability with the original xid crate:
[]
= { = "0.4", = ["xid"] }
Related Crates
ic_auth_verifier: Provides verification functionality for IC-Auth signatures.
License
Copyright © 2024-2025 LDC Labs.
ldclabs/ic-auth is licensed under the MIT License. See LICENSE for the full license text.