verify

abstract fun verify(documentBytes: ByteArray, signatureBytes: ByteArray, verificationMethod: VerificationMethod, proofType: String): Boolean

Verify a digital signature over raw document bytes.

Return

true if the signature is cryptographically valid, false otherwise

Parameters

documentBytes

The canonicalized document bytes that were signed

signatureBytes

The raw signature bytes (decoded from proof value)

verificationMethod

The verification method containing the public key

proofType

The proof type identifier (e.g., "Ed25519Signature2020")