Skip to content

Commit a9e5707

Browse files
committed
Add the ecdsa-rdfc-2019 algorithm statements.
1 parent 16279b3 commit a9e5707

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tests/suites/algorithms.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,34 @@ export function ecdsaRdfc2019Algorithms({
4747
'(cryptosuite).', async function() {
4848
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#transformation-ecdsa-rdfc-2019';
4949
});
50+
it('Whenever this algorithm encodes strings, it MUST use UTF-8 ' +
51+
'encoding. (proof.type)', async function() {
52+
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#transformation-ecdsa-rdfc-2019';
53+
});
54+
it('If options.type is not set to the string DataIntegrityProof ' +
55+
'and options.cryptosuite is not set to the string ecdsa-rdfc-2019, ' +
56+
'an error MUST be raised ', async function() {
57+
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#transformation-ecdsa-rdfc-2019:~:text=If%20options.type%20is%20not%20set%20to%20the%20string%20DataIntegrityProof%20and%20options.cryptosuite%20is%20not%20set%20to%20the%20string%20ecdsa%2Drdfc%2D2019%2C%20an%20error%20MUST%20be%20raised';
58+
});
59+
it('The proof options MUST contain a type identifier for the ' +
60+
'cryptographic suite (type) and MUST contain a cryptosuite ' +
61+
'identifier (cryptosuite).', async function() {
62+
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#proof-configuration-ecdsa-rdfc-2019';
63+
});
64+
it('If proofConfig.type is not set to DataIntegrityProof and/or ' +
65+
'proofConfig.cryptosuite is not set to ecdsa-rdfc-2019, an error ' +
66+
'MUST be raised', async function() {
67+
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#proof-configuration-ecdsa-rdfc-2019:~:text=If%20proofConfig.type%20is%20not%20set%20to%20DataIntegrityProof%20and/or%20proofConfig.cryptosuite%20is%20not%20set%20to%20ecdsa%2Drdfc%2D2019%2C%20an%20error%20MUST%20be%20raised';
68+
});
69+
it('If proofConfig.created is set and if the value is not a valid ' +
70+
'[XMLSCHEMA11-2] datetime, an error MUST be raised', async function() {
71+
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#proof-configuration-ecdsa-rdfc-2019';
72+
});
73+
it('The proof options MUST contain a type identifier for the ' +
74+
'cryptographic suite (type) and MAY contain a cryptosuite ' +
75+
'identifier (cryptosuite).', async function() {
76+
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#proof-serialization-ecdsa-rdfc-2019';
77+
});
5078
});
5179
}
5280
});

0 commit comments

Comments
 (0)