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.

Parameters

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.

Returns

boolean

Whether didA and didB refer to the same DID subject.

Source

did/src/Did.utils.ts:67