Skip to content

Commit

Permalink
Fix concat bug, fix test vectors
Browse files Browse the repository at this point in the history
Co-authored-by: David I. Lehn <[email protected]>
  • Loading branch information
wes-smith and davidlehn authored Feb 6, 2024
1 parent 337802f commit 6d81e84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export function concat(b1, b2, b3) {
const rval = new Uint8Array(b1.length + b2.length + b3.length);
rval.set(b1, 0);
rval.set(b2, b1.length);
rval.set(b3, b2.length);
rval.set(b3, b1.length + b2.length);
return rval;
}
4 changes: 2 additions & 2 deletions test/testSignVerify.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const unsignedCredential = {
'https://www.w3.org/2018/credentials/v1',
{
'@protected': true,
AlumniCredential: 'urn:example:AlumniCredential',
alumniOf: 'https://schema.org#alumniOf'
AlumniCredential: 'https://example.org/examples#AlumniCredential',
alumniOf: 'https://schema.org/alumniOf'
},
'https://w3id.org/security/data-integrity/v2'
],
Expand Down

0 comments on commit 6d81e84

Please sign in to comment.