We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe7522 commit 60dc3a4Copy full SHA for 60dc3a4
test/bip371.spec.ts
@@ -15,7 +15,7 @@ describe('toXOnly', () => {
15
assert.deepStrictEqual(result, pubKey.slice(1, 33)); // Expect the sliced array
16
});
17
18
- it('should throw an error if the pubKey length is less than 32', () => {
+ it('should return the key if the pubKey length is less than 32', () => {
19
const pubKey = new Uint8Array(31).fill(1); // Example invalid public key
20
const result = toXOnly(pubKey);
21
0 commit comments