Skip to content

Commit 280abf8

Browse files
committed
Remove proofValue test from data model & update links.
1 parent 0c32e03 commit 280abf8

File tree

1 file changed

+8
-25
lines changed

1 file changed

+8
-25
lines changed

tests/suites/data-model.js

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,9 @@ export function dataModelSuite({
6363
}
6464
it('The publicKeyMultibase value of the verification method MUST ' +
6565
'start with the base-58-btc prefix (z), as defined in the ' +
66-
'Multibase section of Controller Documents 1.0. A ' +
67-
'Multibase-encoded Ed25519 256-bit public key value follows, as ' +
68-
'defined in the Multikey section of Controller Documents 1.0.',
66+
'Multibase section of Controller Documents 1.0. A ',
6967
async function() {
70-
this.test.link = 'https://w3c.github.io/vc-di-eddsa/#data-model:~:text=in%20this%20specification.-,The%20publicKeyMultibase%20value%20of%20the%20verification%20method%20MUST%20start%20with%20the%20base%2D58%2Dbtc%20prefix,-(z)%2C%20as';
68+
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#data-model:~:text=The%20publicKeyMultibase%20value%20of%20the%20verification%20method%20MUST%20start%20with%20the%20base%2D58%2Dbtc%20prefix%20(z)%2C%20as%20defined%20in%20the%20Multibase%20section%20of%20Controller%20Documents%201.0.';
7169
assertBefore();
7270
for(const proof of proofs) {
7371
expect(proof.verificationMethod).to.exist;
@@ -80,7 +78,7 @@ export function dataModelSuite({
8078
});
8179
it('Any other encoding MUST NOT be allowed. (verificationMethod)',
8280
async function() {
83-
this.test.link = 'https://w3c.github.io/vc-di-eddsa/#data-model:~:text=of%20Controller%20Documents%201.0.-,Any%20other%20encoding%20MUST%20NOT%20be%20allowed.,-Developers%20are%20advised%20to%20not';
81+
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#multikey';
8482
assertBefore();
8583
for(const proof of proofs) {
8684
expect(proof.verificationMethod).to.exist;
@@ -92,38 +90,23 @@ export function dataModelSuite({
9290
}
9391
});
9492
it('The type property MUST be DataIntegrityProof.', async function() {
95-
this.test.link = 'https://w3c.github.io/vc-di-eddsa/#data-model:~:text=The%20type%20property%20MUST%20be%20DataIntegrityProof.';
93+
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#multikey:~:text=The%20type%20property%20MUST%20be%20DataIntegrityProof.';
9694
assertBefore();
9795
for(const proof of proofs) {
9896
expect(proof.type).to.exist;
9997
expect(proof.type).to.be.a('string');
10098
expect(proof.type).to.equal('DataIntegrityProof');
10199
}
102100
});
103-
it('The cryptosuite property of the proof MUST be eddsa-rdfc-2022 or ' +
104-
'eddsa-jcs-2022.', async function() {
105-
this.test.link = 'https://w3c.github.io/vc-di-eddsa/#data-model:~:text=The%20cryptosuite%20property%20of%20the%20proof%20MUST%20be%20eddsa%2Drdfc%2D2022%20or%20eddsa%2Djcs%2D2022.';
101+
it('The cryptosuite property MUST be ecdsa-rdfc-2019, ' +
102+
'ecdsa-jcs-2019, or ecdsa-sd-2023.', async function() {
103+
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#multikey:~:text=The%20cryptosuite%20property%20MUST%20be%20ecdsa%2Drdfc%2D2019%2C%20ecdsa%2Djcs%2D2019%2C%20or%20ecdsa%2Dsd%2D2023.';
106104
assertBefore();
107105
for(const proof of proofs) {
108106
expect(proof.cryptosuite).to.exist;
109107
expect(proof.cryptosuite).to.be.a('string');
110108
expect(proof.cryptosuite).to.be.oneOf(
111-
['eddsa-rdfc-2022', 'eddsa-jcs-2022']);
112-
}
113-
});
114-
it('The proofValue property of the proof MUST be a detached EdDSA ' +
115-
'signature produced according to [RFC8032], encoded using the ' +
116-
'base-58-btc header and alphabet as described in the Multibase ' +
117-
'section of Controller Documents 1.0.', async function() {
118-
this.test.link = 'https://w3c.github.io/vc-di-eddsa/#data-model:~:text=The%20proofValue%20property%20of%20the%20proof%20MUST%20be%20a%20detached%20EdDSA%20signature%20produced%20according%20to%20%5BRFC8032%5D%2C%20encoded%20using%20the%20base%2D58%2Dbtc%20header%20and%20alphabet%20as%20described%20in%20the%20Multibase%20section%20of%20Controller%20Documents%201.0.';
119-
assertBefore();
120-
for(const proof of proofs) {
121-
expect(proof.proofValue).to.exist;
122-
expect(proof.proofValue).to.be.a('string');
123-
expect(
124-
assertions.shouldBeBs58(proof.proofValue),
125-
'Expected "proof.proofValue" to be Base58 encoded'
126-
).to.be.true;
109+
['ecdsa-rdfc-2019', 'edcsa-jcs-2019', 'ecdsa-sd-2023']);
127110
}
128111
});
129112
});

0 commit comments

Comments
 (0)