WitnessVerificationResult class

Result of witness verification for a DID:WebVH log entry.

Constructors

WitnessVerificationResult({required bool isValid, required int validCount, required int threshold, required Set<String> validWitnessDids, String? error})
Constructs a WitnessVerificationResult with the given parameters.
WitnessVerificationResult.failure({required int validCount, required int threshold, required Set<String> validWitnessDids, required String error})
Creates a failed verification result with an error message.
factory
WitnessVerificationResult.success({required int validCount, required int threshold, required Set<String> validWitnessDids})
Creates a successful verification result.
factory

Properties

error String?
Contains an error message if verification failed (e.g., insufficient valid proofs).
final
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Indicates if the witness proofs meet the threshold requirement.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threshold int
The required number of valid proofs for successful verification.
final
validCount int
The number of valid witness proofs found.
final
validWitnessDids Set<String>
The set of witness DIDs that provided valid proofs.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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