Skip to content

Instantly share code, notes, and snippets.

@nmarley
Created June 22, 2018 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmarley/660e4e0ecc9d563f6fce192449c91cc1 to your computer and use it in GitHub Desktop.
Save nmarley/660e4e0ecc9d563f6fce192449c91cc1 to your computer and use it in GitHub Desktop.
commit 02eee15c3341e45f04a5aef424c9df39eff68796
Author: Nathan Marley <nathan.marley@gmail.com>
Date: Fri Jun 22 08:01:07 2018 -0700
space to change the checksum
diff --git a/src/ninja.key.js b/src/ninja.key.js
index b07bac4..25d6ef6 100644
--- a/src/ninja.key.js
+++ b/src/ninja.key.js
@@ -285,6 +285,8 @@ ninja.privateKey = {
var encryptedSeedB = Crypto.AES.encrypt(message2, derivedBytes.slice(32), AES_opts);
// 0x01 0x43 + flagbyte + addresshash + ownerentropy + encryptedpart1[0...7] + encryptedpart2
+
+
var encryptedKey = [0x01, 0x43, flagByte].concat(addressHash).concat(ownerEntropy).concat(encryptedPart1.slice(0, 8)).concat(encryptedSeedB);
// base58check encode
@@ -349,4 +351,4 @@ ninja.publicKey = {
var pubHexUncompressed = ninja.publicKey.getHexFromByteArray(pubByteArray);
return pubHexUncompressed;
}
-};
\ No newline at end of file
+};
commit f3a5d8f4d1668880d7198700824e2efda8ff7866
Author: Nathan Marley <nathan.marley@gmail.com>
Date: Fri Jun 22 08:00:50 2018 -0700
postinstall
diff --git a/package.json b/package.json
index 1b65f41..9f3b1d3 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
},
"scripts": {
"build": "grunt",
+ "postinstall": "npm run build",
"test": ""
},
"repository": {
$ git status
On branch pretendmaster
nothing to commit, working tree clean
$ npm install
> paper.dash.org@3.3.0-dash postinstall /Users/nmarley/projects/paper.dash.org
> npm run build
> paper.dash.org@3.3.0-dash build /Users/nmarley/projects/paper.dash.org
> grunt
Running "combine:single" (combine) task
Processing Input: ./src/bitaddress-ui.html
Writing Output: ./paper.dash.org.html
Combine task completed in 0.06 seconds
Running "lineending:dist" (lineending) task
File "./paper.dash.org.html" created.
Done, without errors.
up to date in 0.851s
$ git status
On branch pretendmaster
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: paper.dash.org.html
no changes added to commit (use "git add" and/or "git commit -a")
$ sha256sum -c paper.dash.org.html.sha256sum
paper.dash.org.html: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment