0.2.0 Feb 17, 2021
0.1.0 Feb 9, 2021
0.0.0 Feb 4, 2021

#12 in #anonymous-credentials

49 downloads per month

Apache-2.0

305KB
6.5K SLoC

ockam_credential

crate docs license discuss

Ockam is a library for building devices that communicate securely, privately and trustfully with cloud services and other devices.

This crate provides the ability to issue and verify attribute based, privacy preserving, anonymous credentials.

The issuer of a credential signs a collection of statements that attest to attributes of the subject of that credential. The subject (or a holder on their behalf) can then selectively disclose these signed statements to a verifier by presenting a cryptographic proof of knowledge of the issuer's signature without revealing the actual signature or any of the other statements that they didn't wish to disclose to this verifier.

Applications can decide if a subject is authorized to take an action based on the attributes of the subject that were proven to be signed by trusted issuers. Since only limited and necessary information is revealed about subjects this improves efficiency, security and privacy of applications.

The main Ockam crate re-exports types defined in this crate.

Usage

Add this to your Cargo.toml:

[dependencies]
ockam_credential = "0.1.0"

Crate Features

The ockam_credential crate has a Cargo feature named "std" that is enabled by default. In order to use this crate in a "no_std" context you can disable default features and then enable the "no_std" feature as follows:

[dependencies]
ockam_credential = { version = "0.1.0", default-features = false, features = ["no_std"] }

License

This code is licensed under the terms of the Apache License 2.0.

Dependencies

~1.4–3MB
~55K SLoC