1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Copyright (C) 2020-2026 The Blockhouse Technology Limited (TBTL).
//
// This program is free software: you can redistribute it and/or modify it
// under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or (at your
// option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
// License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//! This crate implements Selective Disclosure JSON Web Tokens.
//!
//! It provides functionality to create, sign, and verify JWTs that support selective disclosure of
//! claims, in accordance with emerging IETF drafts: [Selective Disclosure for JWTs (SD-JWT)][1] &
//! [SD-JWT-based Verifiable Credentials (SD-JWT VC)][2].
//!
//! [1]: <https://datatracker.ietf.org/doc/html/draft-ietf-oauth-selective-disclosure-jwt>
//! [2]: <https://datatracker.ietf.org/doc/html/draft-ietf-oauth-sd-jwt-vc>
//!
//! # Details
//!
//! The main components of this crate are the following.
//!
//! * [`issuer`] -- Constructs and signs JWTs with standard and custom claims.
//! * [`holder`] -- Imports, manages, and presents SD-JWT credentials with selective disclosure.
//! * [`verifier`] -- Validates JWT signatures, claim integrity, and key binding challenges.
//! * [`lookup`] -- Provides different methods of retrieving an issuer’s public key.
//!
//! # Examples
//!
//! The `bh-sd-jwt` repository contains [the full examples][examples], so you should take a look
//! there to see how things fit together.
//!
//! [examples]: <https://github.com/blockhousetech/eudi-rust-core/tree/main/bh-sd-jwt/examples>
// Re-export the `bh-jws-utils` crate
pub use bh_jws_utils;
pub use ;
use SdJwt;
pub use iref;
pub use ;
pub use KeyBindingChallenge;
pub use *;
pub use SdJwtKB;
pub use *;