CredentialPolicy class final
A membership policy: issuer key, attribute schema and tier threshold. Build one with AviaryCredentials.makeCredentialPolicy.
- Available extensions
Properties
Methods
-
admissionAnswer(
Uint8List credential, Uint8List wire) → Uint8List -
The answer to an admission challenge
wirefrom a peer that holdscredentialunder 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'scommitment. -
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