prepareProofForVerification method
Prepares proof structure for verification according to cryptosuite requirements.
Subclasses override this method to implement cryptosuite-specific proof preparation. Base implementation uses standard data integrity context.
Implementation
@override
Map<String, dynamic> prepareProofForVerification(
Map<String, dynamic> proof, Map<String, dynamic> document) {
final proofCopy = Map<String, dynamic>.from(proof);
// Use document context in proof for JCS cryptosuites during verification
final documentContext = document['@context'];
if (documentContext != null) {
proofCopy['@context'] = documentContext;
}
return proofCopy;
}