ADDRESS_2: 'nano_3b5fnnerfrkt4me4wepqeqggwtfsxu8fai4n473iu6gxprfq4xd8pk9gh1dg'
})
-/**
-* Source: https://github.com/trezor/python-mnemonic/blob/master/vectors.json
-* BLAKE2b keys calculated with Nano KeyTools: https://tools.nanos.cc/?tool=seed
-*/
export const TREZOR_TEST_VECTORS = Object.freeze({
PASSWORD: 'TREZOR',
\r
'use strict'\r
\r
-import './GLOBALS.mjs'\r
+import '#test/GLOBALS.mjs'\r
import { describe, it } from 'node:test'\r
import { strict as assert } from 'assert'\r
-import { NANO_TEST_VECTORS } from './TEST_VECTORS.js'\r
-import { Bip44Wallet, Blake2bWallet, LedgerWallet } from '../dist/main.js'\r
+import { NANO_TEST_VECTORS } from '#test/TEST_VECTORS.js'\r
+import { Bip44Wallet, Blake2bWallet, LedgerWallet } from '#dist/main.js'\r
\r
describe('creating a new wallet', async () => {\r
it('BIP-44 wallet with random entropy', async () => {\r
\r
'use strict'\r
\r
-import './GLOBALS.mjs'\r
+import '#test/GLOBALS.mjs'\r
import { describe, it } from 'node:test'\r
import { strict as assert } from 'assert'\r
-import { NANO_TEST_VECTORS } from './TEST_VECTORS.js'\r
-import { Bip44Wallet, Blake2bWallet, LedgerWallet } from '../dist/main.js'\r
+import { NANO_TEST_VECTORS } from '#test/TEST_VECTORS.js'\r
+import { Bip44Wallet, Blake2bWallet, LedgerWallet } from '#dist/main.js'\r
\r
describe('derive child accounts from the same seed', async () => {\r
const wallet = await Bip44Wallet.fromSeed(NANO_TEST_VECTORS.PASSWORD, NANO_TEST_VECTORS.BIP39_SEED)\r
\r
'use strict'\r
\r
-import './GLOBALS.mjs'\r
+import '#test/GLOBALS.mjs'\r
import { describe, it } from 'node:test'\r
import { strict as assert } from 'assert'\r
-import { BIP32_TEST_VECTORS, CUSTOM_TEST_VECTORS, NANO_TEST_VECTORS, TREZOR_TEST_VECTORS } from './TEST_VECTORS.js'\r
-import { Account, Bip44Wallet, Blake2bWallet } from '../dist/main.js'\r
+import { BIP32_TEST_VECTORS, CUSTOM_TEST_VECTORS, NANO_TEST_VECTORS, TREZOR_TEST_VECTORS } from '#test/TEST_VECTORS.js'\r
+import { Account, Bip44Wallet, Blake2bWallet } from '#dist/main.js'\r
\r
describe('import wallet with test vectors test', () => {\r
it('should successfully import a wallet with the official Nano test vectors mnemonic', async () => {\r
\r
'use strict'\r
\r
-import './GLOBALS.mjs'\r
+import '#test/GLOBALS.mjs'\r
import { describe, it } from 'node:test'\r
import { strict as assert } from 'assert'\r
-import { NANO_TEST_VECTORS, TREZOR_TEST_VECTORS } from './TEST_VECTORS.js'\r
-import { Bip44Wallet, Blake2bWallet } from '../dist/main.js'\r
+import { NANO_TEST_VECTORS, TREZOR_TEST_VECTORS } from '#test/TEST_VECTORS.js'\r
+import { Bip44Wallet, Blake2bWallet } from '#dist/main.js'\r
\r
describe('locking and unlocking a Bip44Wallet', async () => {\r
it('should succeed with a password', async () => {\r
'use strict'
-import './GLOBALS.mjs'
+import '#test/GLOBALS.mjs'
import { describe, it } from 'node:test'
import { strict as assert } from 'assert'
-import { Rolodex, Tools } from '../dist/main.js'
-import { NANO_TEST_VECTORS } from './TEST_VECTORS.js'
+import { Rolodex, Tools } from '#dist/main.js'
+import { NANO_TEST_VECTORS } from '#test/TEST_VECTORS.js'
describe('rolodex valid contact management', async () => {
it('should create a rolodex and add two contacts', async () => {
'use strict'
-import './GLOBALS.mjs'
+import '#test/GLOBALS.mjs'
import { describe, it } from 'node:test'
import { strict as assert } from 'assert'
-import { NANO_TEST_VECTORS } from './TEST_VECTORS.js'
-import { Account, Bip44Wallet, Rpc } from '../dist/main.js'
+import { NANO_TEST_VECTORS } from '#test/TEST_VECTORS.js'
+import { Account, Bip44Wallet, Rpc } from '#dist/main.js'
const wallet = await Bip44Wallet.fromSeed(NANO_TEST_VECTORS.PASSWORD, NANO_TEST_VECTORS.BIP39_SEED)
await wallet.unlock(NANO_TEST_VECTORS.PASSWORD)
\r
'use strict'\r
\r
-import './GLOBALS.mjs'\r
+import '#test/GLOBALS.mjs'\r
import { describe, it } from 'node:test'\r
import { strict as assert } from 'assert'\r
-import { NANO_TEST_VECTORS } from './TEST_VECTORS.js'\r
-import { SendBlock, ReceiveBlock, ChangeBlock } from '../dist/main.js'\r
+import { NANO_TEST_VECTORS } from '#test/TEST_VECTORS.js'\r
+import { SendBlock, ReceiveBlock, ChangeBlock } from '#dist/main.js'\r
\r
describe('valid blocks', async () => {\r
it('should not allow negative balances', async () => {\r
\r
'use strict'\r
\r
-import './GLOBALS.mjs'\r
+import '#test/GLOBALS.mjs'\r
import { describe, it } from 'node:test'\r
import { strict as assert } from 'assert'\r
-import { RAW_MAX, NANO_TEST_VECTORS } from './TEST_VECTORS.js'\r
-import { Bip44Wallet, Account, SendBlock, Rpc, Tools } from '../dist/main.js'\r
+import { RAW_MAX, NANO_TEST_VECTORS } from '#test/TEST_VECTORS.js'\r
+import { Bip44Wallet, Account, SendBlock, Rpc, Tools } from '#dist/main.js'\r
\r
const skip = true\r
\r