Closed nitro-neal closed 6 months ago
const issuerDid = await DidDht.create(); const vc = await VerifiableCredential.create({ type : 'StreetCred', issuer : 'did:fakeissuer:123', subject : 'did:subject:123', data : new StreetCredibility('high', true), }); const vcJwt = await vc.sign({ did: issuerDid }); await VerifiableCredential.verify({ vcJwt });
Make sure that this fails verify() if the issuer is not the same as the issuer in the vc payload
Make sure that this fails verify() if the issuer is not the same as the issuer in the vc payload