Skip to content

Commit 52b25a8

Browse files
committed
Remove self asserted claims (holder claims) vp statements
1 parent 6fb0748 commit 52b25a8

File tree

1 file changed

+0
-59
lines changed

1 file changed

+0
-59
lines changed

tests/4.13-verifiable-presentations.js

-59
Original file line numberDiff line numberDiff line change
@@ -111,62 +111,3 @@ describe('Verifiable Presentations', function() {
111111
});
112112
}
113113
});
114-
115-
// 4.12.4 Presentations Including Holder Claims https://w3c.github.io/vc-data-model/#presentations-including-holder-claims
116-
describe('VP - Presentations Including Holder Claims', function() {
117-
setupMatrix.call(this, match);
118-
for(const [name, implementation] of match) {
119-
const endpoints = new TestEndpoints({implementation, tag});
120-
121-
describe(name, function() {
122-
beforeEach(addPerTestMetadata);
123-
124-
it('A verifiable presentation that includes a self-asserted verifiable ' +
125-
'credential that is only secured using the same mechanism as the ' +
126-
'verifiable presentation MUST include a holder property.',
127-
async function() {
128-
this.test.link = `https://w3c.github.io/vc-data-model/#presentations-including-holder-claims:~:text=A%20verifiable%20presentation%20that%20includes%20a%20self%2Dasserted%20verifiable%20credential%20that%20is%20only%20secured%20using%20the%20same%20mechanism%20as%20the%20verifiable%20presentation%20MUST%20include%20a%20holder%20property.`;
129-
const selfAssertedNoHolder = await createLocalVp({
130-
presentation: require(
131-
'./input/presentation-self-asserted-vc-no-holder.json')
132-
});
133-
await assert.rejects(endpoints.verifyVp(
134-
selfAssertedNoHolder
135-
), 'Failed to reject a VP with self-asserted VC without holder.');
136-
});
137-
138-
it('When a self-asserted verifiable credential is secured using the ' +
139-
'same mechanism as the verifiable presentation, the value of the ' +
140-
'issuer property of the verifiable credential MUST be identical to ' +
141-
'the holder property of the verifiable presentation.',
142-
async function() {
143-
this.test.link = `https://w3c.github.io/vc-data-model/#presentations-including-holder-claims:~:text=When%20a%20self%2Dasserted%20verifiable%20credential%20is%20secured%20using%20the%20same%20mechanism%20as%20the%20verifiable%20presentation%2C%20the%20value%20of%20the%20issuer%20property%20of%20the%20verifiable%20credential%20MUST%20be%20identical%20to%20the%20holder%20property%20of%20the%20verifiable%20presentation.`;
144-
const presentationHolderMatch = await createLocalVp({
145-
presentation: require(
146-
'./input/presentation-self-asserted-vc-ok.json')
147-
});
148-
await assert.doesNotReject(endpoints.verifyVp(
149-
presentationHolderMatch
150-
), 'Failed to verify a VP containing a self-asserted VC.');
151-
152-
const presentationHolderMismatch = await createLocalVp({
153-
presentation: require(
154-
'./input/presentation-self-asserted-vc-holder-mismatch.json')
155-
});
156-
await assert.rejects(endpoints.verifyVp(
157-
presentationHolderMismatch
158-
), 'Failed to reject a VP with self-asserted VC ' +
159-
'with a holder/issuer mismatch.');
160-
161-
const presentationIssuerMismatch = await createLocalVp({
162-
presentation: require(
163-
'./input/presentation-self-asserted-vc-issuer-mismatch.json')
164-
});
165-
await assert.rejects(endpoints.verifyVp(
166-
presentationIssuerMismatch
167-
), 'Failed to reject a VP with self-asserted VC ' +
168-
'with a holder/issuer mismatch.');
169-
});
170-
});
171-
}
172-
});

0 commit comments

Comments
 (0)