@@ -63,11 +63,9 @@ export function dataModelSuite({
63
63
}
64
64
it ( 'The publicKeyMultibase value of the verification method MUST ' +
65
65
'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 ' ,
69
67
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. ' ;
71
69
assertBefore ( ) ;
72
70
for ( const proof of proofs ) {
73
71
expect ( proof . verificationMethod ) . to . exist ;
@@ -80,7 +78,7 @@ export function dataModelSuite({
80
78
} ) ;
81
79
it ( 'Any other encoding MUST NOT be allowed. (verificationMethod)' ,
82
80
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 ' ;
84
82
assertBefore ( ) ;
85
83
for ( const proof of proofs ) {
86
84
expect ( proof . verificationMethod ) . to . exist ;
@@ -92,38 +90,23 @@ export function dataModelSuite({
92
90
}
93
91
} ) ;
94
92
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.' ;
96
94
assertBefore ( ) ;
97
95
for ( const proof of proofs ) {
98
96
expect ( proof . type ) . to . exist ;
99
97
expect ( proof . type ) . to . be . a ( 'string' ) ;
100
98
expect ( proof . type ) . to . equal ( 'DataIntegrityProof' ) ;
101
99
}
102
100
} ) ;
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 .' ;
106
104
assertBefore ( ) ;
107
105
for ( const proof of proofs ) {
108
106
expect ( proof . cryptosuite ) . to . exist ;
109
107
expect ( proof . cryptosuite ) . to . be . a ( 'string' ) ;
110
108
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' ] ) ;
127
110
}
128
111
} ) ;
129
112
} ) ;
0 commit comments