CredentialGate class final

A verifier's anonymous membership admission gate. It admits a holder by a zero knowledge proof of an issuer signed credential clearing the policy.

Implemented types
Available extensions

Properties

hashCode → int
The hash code for this object.
no setterinherited
isReleased → bool
Whether the native handle has already been released.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

admissionChallenge(int epoch) → AdmissionChallenge
A fresh admission challenge for epoch: keep the nonce, send the wire message to the connecting peer.
admissionGranted(int epoch, Uint8List nonce, Uint8List presentation, int now) → bool
Whether a peer's presentation, answering the challenge whose nonce this gate issued (admissionChallenge), admits for epoch at now. Never throws.
admit(int epoch, String scope, Uint8List challenge, Uint8List presentation, int now) → bool
Runs the full admission checklist. A malformed presentation is false; this never throws.
admitPseudonymous(int epoch, String scope, Uint8List challenge, Uint8List presentation, int now) → Uint8List?

Available on CredentialGate, provided by the CredentialGatePseudonymous extension

Admits a pseudonymous presentation and returns the 48 byte pseudonym, or null on any reject. Never throws.
free() → void
Releases the native gate.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
noteAdmission(int epoch, String scope, Uint8List nym) → bool

Available on CredentialGate, provided by the CredentialGatePseudonymous extension

Records an admitted nym; true when it is the first for this epoch and scope.
revokeIssuerEpoch(int epoch) → void
Bulk revocation: refuses every credential issued in epoch.
revokeNym(Uint8List nym) → void

Available on CredentialGate, provided by the CredentialGatePseudonymous extension

Targeted revocation of an exact pseudonym.
toString() → String
A string representation of this object.
inherited

Operators

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