Re-generate test-vectors to have did:dht:... DIDs for both pfi and alice in building various tbdex messages
Pull in the re-generated test vectors in the tbdex submodule
Run ./gradlew clean build
TbdexTestVectorTests tests fail
I know this is caused by using did:dht:... for my DIDs because I cannot reproduce the issue if I do step 1 with did:jwk:... for my DIDs.
The require block fails and message.verify() called from various concrete message implementation's i.e. Rfq.parse(message) fails due to this.
val assertionMethods = didResolutionResult.didDocument?.assertionMethodVerificationMethodsDereferenced
val assertionMethod = assertionMethods?.firstOrNull {
val id = it.id.toString()
verificationMethodIds.contains(id)
}
// this require fails. assertionMethod is null
require(assertionMethod != null) {
throw SignatureException(
"Signature verification failed: Expected kid in JWS header to dereference " +
"a DID Document Verification Method with an Assertion verification relationship"
)
}
Steps to reproduce this issue
did:dht:...
DIDs for both pfi and alice in building various tbdex messagestbdex
submodule./gradlew clean build
I know this is caused by using
did:dht:...
for my DIDs because I cannot reproduce the issue if I do step 1 withdid:jwk:...
for my DIDs.The
require
block fails and message.verify() called from various concrete message implementation's i.e.Rfq.parse(message)
fails due to this.Link to code on github: https://github.com/TBD54566975/tbdex-kt/blob/main/protocol/src/main/kotlin/tbdex/sdk/protocol/CryptoUtils.kt#L81-L92