Skip to content

Commit d782e5c

Browse files
committed
update latest version noble-hashes
1 parent b0a7fe3 commit d782e5c

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.11.1
1+
v20.19.0

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@
5454
"vitest": "^3.1.3"
5555
},
5656
"dependencies": {
57-
"@noble/hashes": "^1.8.0"
57+
"@noble/hashes": "^2.0.1"
5858
}
5959
}

src/babyjub/eddsa-keys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { babyJub } from './babyjub';
22
import { Eddsa, eddsa } from './eddsa';
33
import { Hex } from '../hex';
4-
import { blake512 } from '@noble/hashes/blake1';
4+
import { blake512 } from '@noble/hashes/blake1.js';
55
import { utils } from '../ff';
66

77
export class Signature {

src/babyjub/eddsa.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { babyJub, BabyJub } from './babyjub';
22
import { poseidon } from '../poseidon';
33
import { F1Field, Scalar, utils } from '../ff';
44
import { PublicKey, Signature } from './eddsa-keys';
5-
import { blake512 } from '@noble/hashes/blake1';
5+
import { blake512 } from '@noble/hashes/blake1.js';
66

77
export class Eddsa {
88
babyJub: BabyJub = babyJub;

src/sha256-noble.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as sha2 from '@noble/hashes/sha2';
1+
import * as sha2 from '@noble/hashes/sha2.js';
22

33
export function sha256(data: Uint8Array): Uint8Array {
44
return sha2.sha256(data);

tests/blake512.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Hex } from '../src';
2-
import { blake512 } from '@noble/hashes/blake1';
2+
import { blake512 } from '@noble/hashes/blake1.js';
33

44
describe('blake512 hash', () => {
55
it('blake512', () => {

0 commit comments

Comments
 (0)