Skip to content

Commit

Permalink
chore: v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SeverinAlexB committed Sep 18, 2024
1 parent 425e8c8 commit 80b8940
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ln-verifymessagejs",
"version": "1.2.0",
"version": "1.2.1",
"description": "Signs/checks message signatures like core-lightning checkmessge or lnd signmessage.",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions test/utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as secp from "@noble/secp256k1";
import {utils} from '../src'
import { bytesToHex, dsha526, hexToBytes } from "../src/utils";
import { bytesToHex, dsha256, hexToBytes } from "../src/utils";


test("Match key string with bytes", async () => {
Expand All @@ -21,7 +21,7 @@ test("dsha256", async () => {
169, 168, 221, 176, 136, 131, 104, 187,
23, 78, 134, 227, 48, 33, 122, 213
]);
const hash = dsha526(input)
const hash = dsha256(input)
expect(hash).toEqual(new Uint8Array([179, 34, 87, 183, 183, 156, 156, 56, 23, 65, 122, 250, 131, 252, 176, 48, 203, 212, 161, 7, 140, 69, 140, 99, 185, 22, 74, 197, 114, 194, 250, 132]));
});

Expand Down

0 comments on commit 80b8940

Please sign in to comment.