From 027f22ace7b5105805994d07ecde397ecb4ab2e3 Mon Sep 17 00:00:00 2001 From: Tashi D Gyeltshen Date: Fri, 3 Nov 2023 09:28:04 -0400 Subject: [PATCH] Change byte length 35 to 34. --- tests/10-create.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/10-create.js b/tests/10-create.js index ba0753b..f25f7ea 100644 --- a/tests/10-create.js +++ b/tests/10-create.js @@ -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 ' + @@ -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 ' +