Skip to content

isSameSubject

isSameSubject(didA, didB): boolean

Returns true if both didA and didB refer to the same DID subject, i.e., whether they have the same identifier as specified in the method spec.

didA: `did:cord:3${string}`

A CORD DID uri as a string.

didB: `did:cord:3${string}`

A second CORD DID uri as a string.

boolean

Whether didA and didB refer to the same DID subject.

did/src/Did.utils.ts:67