DataIntegrityEddsaJcsVerifier class
Verifies Data Integrity Proofs signed with the eddsa-jcs-2022 cryptosuite.
Canonicalizes using JCS and hashes the credential and proof separately, then verifies the combined hash against the provided proof signature using the issuer's DID key.
- Inheritance
-
- Object
- EmbeddedProofSuiteVerifyOptions
- DataIntegrityEddsaJcsVerifier
- Implemented types
Constructors
-
DataIntegrityEddsaJcsVerifier({required String verifierDid, DateTime getNow()?, List<
String> ? domain, String? challenge, DocumentLoader? customDocumentLoader, DidResolver? didResolver}) - Constructs a new DataIntegrityEddsaJcsVerifier.
Properties
- challenge → String?
-
Optional challenge value.
finalinherited
- contextUrl → String
-
The context URL for this proof type.
no setterinherited
- customDocumentLoader → DocumentLoader
-
The document loader to use when verifying proofs.
finalinherited
- didResolver → DidResolver?
-
Optional custom DID resolver for offline/test verification.
finalinherited
-
domain
→ List<
String> ? -
Optional domain restriction.
finalinherited
- expectedCryptosuite → String
-
The expected cryptographic suite.
no setterinherited
- expectedJcsCryptosuite → String
-
The expected cryptosuite identifier for this verifier.
no setter
- expectedProofType → String
-
The expected proof type.
no setterinherited
- getNow → DateTime Function()
-
Function to get the current time.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hashingAlgorithm → HashingAlgorithm
-
The hashing algorithm to use for this cryptosuite.
no setter
- issuerDid → String
-
The DID of the issuer.
finalinherited
- proofValueField → String
-
The field name containing the proof value.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
computeSignatureHash(
Map< String, dynamic> proof, Map<String, dynamic> unsignedCredential, Future<RemoteDocument?> documentLoader(Uri url, LoadDocumentOptions? options)) → Future<Uint8List> -
Computes the signature hash from proof and document.
inherited
-
getSignatureScheme(
Uri verificationMethod) → Future< SignatureScheme> -
Gets the signature scheme for signature verification.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareProofForVerification(
Map< String, dynamic> proof, Map<String, dynamic> document) → Map<String, dynamic> -
Prepares proof structure for verification according to cryptosuite requirements.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateCryptosuite(
Map< String, dynamic> document, Map<String, dynamic> proof) → Future<VerificationResult> -
Validates cryptosuite-specific requirements.
inherited
-
verify(
Map< String, dynamic> document, {DateTime getNow() = DateTime.now}) → Future<VerificationResult> -
Verify the embedded proofs in the document
inherited
-
verifySignature(
String proofValue, String issuerDid, Uri verificationMethod, Uint8List hash) → Future< bool> -
Verifies the signature against the computed hash.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited