Fork of github.com/did-method-plc/did-method-plc

relax constraints on service key format

Changed files
+2 -3
packages
server
+2 -3
packages/server/src/constraints.ts
···
`Verification Method id too long (max ${MAX_ID_LENGTH}): ${id}`,
)
}
-
try {
-
parseDidKey(key)
-
} catch (err) {
+
// perform only minimal did:key syntax checking
+
if (!key.startsWith('did:key:')) {
throw new ServerError(400, `Invalid verificationMethod key: ${key}`)
}
}