Skip to content

Commit 8f078cd

Browse files
Merge branch 'release/v1.0.29'
2 parents ff4a5de + 7485f14 commit 8f078cd

File tree

10 files changed

+31
-31
lines changed

10 files changed

+31
-31
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// https://github.com/andreashuber69/verify-coldcard-dice-seed/blob/develop/README.md#----verify-coldcard-dice-seed
2-
// eslint-disable-next-line import/unambiguous, import/no-commonjs
2+
// eslint-disable-next-line import/no-commonjs, import/unambiguous
33
module.exports = {
44
env: {
55
node: true,

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
],
1111
"cSpell.import": ["../cspell.json"],
1212
"files.autoSave": "onFocusChange",
13+
"editor.rulers": [120],
1314
"git.confirmSync": false,
1415
"typescript.tsdk": "./node_modules/typescript/lib",
1516
"typescript.preferences.quoteStyle": "double"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ COLDCARD copy correctly derives the seed but then generates addresses from a dif
130130
``` shell_session cSpell:disable
131131
$ npx verify-coldcard-dice-seed@latest
132132
Need to install the following packages:
133-
verify-coldcard-dice-seed@1.0.28
133+
verify-coldcard-dice-seed@1.0.29
134134
Ok to proceed? (y) y
135-
*** Verify COLDCARD Dice Seed v1.0.28 ***
135+
*** Verify COLDCARD Dice Seed v1.0.29 ***
136136
(tested with COLDCARD Mk4 firmware v5.2.2)
137137
138138
This application guides you through verifying that your COLDCARD

cspell.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
],
1717
"ignorePaths": [
1818
"/cc-test-reporter",
19-
"/coverage/**",
20-
"/dist/**",
21-
"/package.json",
22-
"/github_pages/**"
19+
"/coverage/",
20+
"/dist/",
21+
"/github_pages/",
22+
"/package.json"
2323
]
2424
}

index.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@
1818
<section>
1919
<hgroup>
2020
<h1>Verify COLDCARD Dice Seed</h1>
21-
<p><span>v1.0.28</span></p>
21+
<p><span>v1.0.29</span></p>
2222
</hgroup>
2323
<p>The COLDCARD manufacturer
2424
<a href="https://coldcardwallet.com/docs/verifying-dice-roll-math" target="_blank">provides instructions</a>
25-
on how to verify dice seed derivation with a Python script. This site offers a more user-friendly way to do the
26-
same, but goes one step further: It also allows you to verify the receive addresses derived from the seed. See
27-
<a href="https://www.npmjs.com/package/verify-coldcard-dice-seed#motivation" target="_blank">Motivation</a> for
28-
technical details. Step by step guidance is available through the
25+
on how to verify dice seed derivation with a Python script. This site offers a user-friendlier way to do the
26+
same and goes one step further: It also allows you to verify the receive addresses derived from the seed. Step
27+
by step guidance for the COLDCARD is available through the
2928
<a href="https://www.npmjs.com/package/verify-coldcard-dice-seed" target="_blank">verify-coldcard-dice-seed</a>
30-
Node.js application.</p>
29+
Node.js application. See
30+
<a href="https://www.npmjs.com/package/verify-coldcard-dice-seed#motivation" target="_blank">Motivation</a> for
31+
technical details.</p>
3132
<p>
3233
<mark>CAUTION: The very point of a COLDCARD is that the seed (usually expressed as a 12 word mnemonic) of a real
3334
wallet <b>never</b> appears on any other device. You should therefore only use this application to verify

package-lock.json

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

package.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "verify-coldcard-dice-seed",
3-
"version": "1.0.28",
3+
"version": "1.0.29",
44
"description": "Verify whether your COLDCARD correctly generates seeds and addresses from dice rolls.",
55
"keywords": [
66
"bitcoin",
@@ -36,23 +36,21 @@
3636
"/*.md"
3737
],
3838
"scripts": {
39-
"start": "npm run build && node .",
39+
"start": "tsx './src/main.ts'",
40+
"dev": "vite --open",
41+
"preview": "vite build && vite preview --open",
4042
"prelint": "cspell '**' && markdownlint '**/*.md'",
41-
"lint": "eslint --ext .cjs,.ts --report-unused-disable-directives .",
42-
"prebuild": "npm run lint",
43-
"build": "tsc -p ./src/tsconfig.json",
43+
"lint": "eslint --ext .cjs,.ts --report-unused-disable-directives '.'",
44+
"build": "tsc -p './src/tsconfig.json'",
4445
"postbuild": "vite build",
4546
"test-no-coverage": "node --import tsx --test src/*.spec.ts",
4647
"test-no-coverage-built": "node --test dist/*.spec.js",
4748
"test": "c8 --exclude 'src/*.spec.ts' --reporter=text --reporter=lcov npm run test-no-coverage",
4849
"test-built": "c8 --exclude 'dist/*.spec.js' --reporter=text --reporter=lcov npm run test-no-coverage-built",
4950
"show-coverage": "vite 'coverage/lcov-report' --logLevel error --open",
50-
"preci": "npm run build",
51-
"ci": "npm test",
52-
"dev": "vite --open",
53-
"preview": "vite build && vite preview --open",
54-
"preversion": "tsx ./preversion.ts",
55-
"version": "tsx ./version.ts",
51+
"ci": "npm run lint && npm run build && npm test",
52+
"preversion": "tsx './preversion.ts'",
53+
"version": "tsx './version.ts'",
5654
"postversion": "git commit -a -m \"chore: start release v`cat package.json | jq -r '.version'`\"",
5755
"finish-release": "git flow release finish -p -m \"chore: finish release\" v`cat package.json | jq -r '.version'`"
5856
},

src/site.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ const onInput = async () => {
6060
diceRollsElement.ariaInvalid = `${tooShort || patternMismatch || valueMissing}`;
6161
const mnemonic = await getMnemonic(rolls);
6262

63+
showMnemonic();
64+
addressesElement.innerHTML = "";
65+
6366
if (mnemonic) {
6467
showMnemonic(mnemonic);
6568

@@ -73,9 +76,6 @@ const onInput = async () => {
7376
}
7477

7578
addressesElement.innerHTML = addressesHtml;
76-
} else {
77-
showMnemonic();
78-
addressesElement.innerHTML = "";
7979
}
8080
};
8181

src/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"sourceMap": true
99
},
1010
"include": [
11-
"./**/*.ts"
11+
"**/*.ts"
1212
]
1313
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
},
1111
"include": [
1212
".eslintrc.cjs",
13-
"./*.ts"
13+
"*.ts"
1414
]
1515
}

0 commit comments

Comments
 (0)