Skip to content

Commit

Permalink
Change byte length 35 to 34.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSAssassin committed Nov 3, 2023
1 parent 7eb4a02 commit 027f22a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/10-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('eddsa-2022 (create)', function() {
);
});
it('The "publicKeyMultibase" value of the verification method MUST ' +
'be 35 bytes in length and starts with the base-58-btc prefix (z).',
'be 34 bytes in length and starts with the base-58-btc prefix (z).',
async function() {
this.test.cell = {columnId, rowId: this.test.title};
verificationMethodDocuments.should.not.eql([], 'Expected ' +
Expand All @@ -124,9 +124,9 @@ describe('eddsa-2022 (create)', function() {
const publicKeyMultibaseBytes = bs58Decode({
id: publicKeyMultibase
});
publicKeyMultibaseBytes.byteLength.should.equal(35, 'Expected ' +
publicKeyMultibaseBytes.byteLength.should.equal(34, 'Expected ' +
'"publicKeyMultibase" value of the verification method to ' +
'be 35 bytes in length.');
'be 34 bytes in length.');
}
});
it('"proofValue" field when decoded to raw bytes, MUST be 64 bytes ' +
Expand Down

0 comments on commit 027f22a

Please sign in to comment.