Remove scure-base from top-level dep
This commit is contained in:
parent
7073f63c6b
commit
4ec46dd65d
1
package-lock.json
generated
1
package-lock.json
generated
@ -18,7 +18,6 @@
|
|||||||
"@noble/hashes": "1.2.0"
|
"@noble/hashes": "1.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@scure/base": "~1.1.1",
|
|
||||||
"@scure/bip32": "~1.1.5",
|
"@scure/bip32": "~1.1.5",
|
||||||
"@scure/bip39": "~1.1.1",
|
"@scure/bip39": "~1.1.1",
|
||||||
"@types/node": "18.11.3",
|
"@types/node": "18.11.3",
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
"@noble/hashes": "1.2.0"
|
"@noble/hashes": "1.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@scure/base": "~1.1.1",
|
|
||||||
"@scure/bip32": "~1.1.5",
|
"@scure/bip32": "~1.1.5",
|
||||||
"@scure/bip39": "~1.1.1",
|
"@scure/bip39": "~1.1.1",
|
||||||
"@types/node": "18.11.3",
|
"@types/node": "18.11.3",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { deepStrictEqual, throws } from 'assert';
|
import { deepStrictEqual, throws } from 'assert';
|
||||||
import { describe, should } from 'micro-should';
|
import { describe, should } from 'micro-should';
|
||||||
import { hex, utf8 } from '@scure/base';
|
import { utf8ToBytes } from '@noble/hashes/utils.js';
|
||||||
import * as bip32 from '@scure/bip32';
|
import * as bip32 from '@scure/bip32';
|
||||||
import * as bip39 from '@scure/bip39';
|
import * as bip39 from '@scure/bip39';
|
||||||
import * as starknet from '../../lib/esm/stark.js';
|
import * as starknet from '../../lib/esm/stark.js';
|
||||||
@ -9,7 +9,7 @@ import { default as precomputedKeys } from './fixtures/keys_precomputed.json' as
|
|||||||
|
|
||||||
describe('starknet', () => {
|
describe('starknet', () => {
|
||||||
should('custom keccak', () => {
|
should('custom keccak', () => {
|
||||||
const value = starknet.keccak(utf8.decode('hello'));
|
const value = starknet.keccak(utf8ToBytes('hello'));
|
||||||
deepStrictEqual(value, 0x8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8n);
|
deepStrictEqual(value, 0x8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8n);
|
||||||
deepStrictEqual(value < 2n ** 250n, true);
|
deepStrictEqual(value < 2n ** 250n, true);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user