selective_disclosure_jwt 1.1.0 copy "selective_disclosure_jwt: ^1.1.0" to clipboard
selective_disclosure_jwt: ^1.1.0 copied to clipboard

A Dart SDK for working with Selective Disclosure JSON Web Tokens (SD-JWT) following the SD-JWT specification.

example/README.md

SD-JWT for Dart Examples #

Check the sample app and code snippets to learn how to integrate this package with your project.

1. Sample app for end-to-end implementation #

Set up and run the end-to-end sample implementation of the Affinidi SD-JWT for Dart with Flutter - view example.

2. Create and sign SD-JWT #

Create and sign the selected disclosures as SD-JWT - view example.

3. Create and sign a various disclosure structure #

Create and sign the nested disclosures as SD-JWT - view example.

Create and sign the array element disclosures as SD-JWT - view example.

4. Verify the SD-JWT #

Decode and verify the SD-JWT string often shared to your application - view example.

Decode and verify the SD-JWT serialised data - view example.

5. Create a Key-binding JWT (KB-JWT) #

Key-binding JWT ensures that only the intended holder can present the SD-JWT - view example.

6. Create an SD-JWT presentation #

Create the presentation of the selected disclosure - view example.

7. Use a custom algorithm #

If you wish to use another algorithm outside of the bundled algorithm from the package, you can extend and implement the following interface - view example.

  • For custom signer, extend the Signer interface class.

  • For custom verifier, extend the Verifier interface class.

  • For custom hasher, extend the Hasher interface class.

14
likes
160
points
3.48k
downloads

Publisher

verified publisheraffinidi.com

Weekly Downloads

A Dart SDK for working with Selective Disclosure JSON Web Tokens (SD-JWT) following the SD-JWT specification.

Repository (GitHub)
View/report issues
Contributing

Topics

#jwt #sd-jwt #selective-disclosure #cryptography #authentication

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

convert, crypto, dart_jsonwebtoken, equatable, meta, rfc_6901, uuid

More

Packages that depend on selective_disclosure_jwt