dummy
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Derrick Hammer 2022-12-22 14:18:38 -05:00
parent bcc63ae15d
commit 1da240ecd6
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
diff --git a/index.js b/index.js
index dc628dab1a201e6679a1716b3d51b56e4723b49d..9daeb44298586d51d7bb6e859a1dd696846e0078 100644
--- a/index.js
+++ b/index.js
@@ -115,11 +115,11 @@ class HDKey {
});
}
sign(message) {
- message = ensureBytes(message, 32);
+ message = ensureBytes(message);
return ed25519.sync.sign(message, this.privateKey);
}
verify(message, signature) {
- message = ensureBytes(message, 32);
+ message = ensureBytes(message);
signature = ensureBytes(signature, 64);
return ed25519.sync.verify(signature, message, this.publicKeyRaw);
}