Crates.io | ockam_credential |
lib.rs | ockam_credential |
version | 0.2.0 |
source | src |
created_at | 2021-02-04 01:30:12.602288 |
updated_at | 2021-02-17 02:08:03.139553 |
description | Attribute based, privacy preserving, anonymous credentials. |
homepage | https://github.com/ockam-network/ockam |
repository | https://github.com/ockam-network/ockam/tree/develop/implementations/rust/ockam/ockam_credential |
max_upload_size | |
id | 350332 |
size | 46,546 |
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.
Add this to your Cargo.toml
:
[dependencies]
ockam_credential = "0.1.0"
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"] }
This code is licensed under the terms of the Apache License 2.0.