CredentialPolicy class final

A membership policy: issuer key, attribute schema and tier threshold. Build one with AviaryCredentials.makeCredentialPolicy.

Available extensions

Properties

encoded → Uint8List
The policy's canonical bytes.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

admissionAnswer(Uint8List credential, Uint8List wire) → Uint8List
The answer to an admission challenge wire from a peer that holds credential under this policy.
blindIssue(Uint8List issuerSecret, Uint8List commitment, int tier, int notAfter, int issuerEpoch) → Uint8List

Available on CredentialPolicy, provided by the CredentialPolicyPseudonymous extension

Issuer step two: blind signs the holder's commitment.
hash() → Uint8List
The 32 byte commitment to commit into genesis.
override
issue(Uint8List issuerSecret, Uint8List memberSecret, int tier, int notAfter, int issuerEpoch) → Uint8List
Issuer side: signs a credential for a member. Holder secret.
membershipCommit(Uint8List memberSecret) → Uint8List

Available on CredentialPolicy, provided by the CredentialPolicyPseudonymous extension

Holder step one: a blinded membership commit. Holder secret; send extractCommitment of it to the issuer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
present(Uint8List credential, int epoch, String scope, Uint8List challenge) → Uint8List
Holder side: an unlinkable presentation bound to epoch, scope and challenge.
presentPseudonymous(Uint8List credential, int epoch, String scope, Uint8List challenge) → Uint8List

Available on CredentialPolicy, provided by the CredentialPolicyPseudonymous extension

Holder step three: a per epoch pseudonymous presentation.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited