gitmark 0.0.60 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/git-mark +16 -1
- package/bin/git-mark-list +1 -1
- package/package.json +1 -1
package/bin/git-mark
CHANGED
|
@@ -21,7 +21,8 @@ globalThis.data = {
|
|
|
21
21
|
branch: 'gh-pages',
|
|
22
22
|
notify: 'http://gitmark.me:4444',
|
|
23
23
|
sign: false,
|
|
24
|
-
tag: false
|
|
24
|
+
tag: false,
|
|
25
|
+
exodus: false
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
// FUNCTIONS
|
|
@@ -112,6 +113,8 @@ data.hash = argv._[1] || head || data.hash
|
|
|
112
113
|
data.genesis = argv.genesis || data.genesis
|
|
113
114
|
data.sign = argv.S || data.sign
|
|
114
115
|
data.tag = argv.tag || data.tag
|
|
116
|
+
data.exodus = argv.exodus || data.exodus
|
|
117
|
+
|
|
115
118
|
|
|
116
119
|
console.log('data', data)
|
|
117
120
|
|
|
@@ -185,6 +188,15 @@ console.log(b3.toString(16))
|
|
|
185
188
|
console.log(b4.toString(16))
|
|
186
189
|
console.log(b5.toString(16))
|
|
187
190
|
|
|
191
|
+
// address from priv key addition
|
|
192
|
+
var { address } = bitcoin.payments.p2pkh({
|
|
193
|
+
pubkey: keyPair1.publicKey,
|
|
194
|
+
network: NETWORK
|
|
195
|
+
})
|
|
196
|
+
console.log('initial address computed from private', address)
|
|
197
|
+
var genesisAddress = address
|
|
198
|
+
|
|
199
|
+
|
|
188
200
|
// address from priv key addition
|
|
189
201
|
var { address } = bitcoin.payments.p2pkh({
|
|
190
202
|
pubkey: keyPair3.publicKey,
|
|
@@ -272,6 +284,9 @@ console.log(`signrawtransaction ${hex} null '["${keyPair1.toWIF()}"]'`)
|
|
|
272
284
|
console.log('sendrawtransaction')
|
|
273
285
|
|
|
274
286
|
var txexe = getConfig('gitmark.txexe')
|
|
287
|
+
if (data.exodus) {
|
|
288
|
+
address = genesisAddress
|
|
289
|
+
}
|
|
275
290
|
var txcommand = `bin/tx.sh ${lastCommit[0]} ${lastCommit[1]
|
|
276
291
|
} ${address} ${nextfee} ${keyPair1.toWIF()}`
|
|
277
292
|
console.log(txcommand)
|
package/bin/git-mark-list
CHANGED
|
@@ -83,7 +83,7 @@ function addCryptoToCommit(commit) {
|
|
|
83
83
|
function renderCommit(commit, type) {
|
|
84
84
|
if (!commit) return
|
|
85
85
|
if (type === 'nostr') {
|
|
86
|
-
var canon = [0, commit.pubkey, commit.authorDate,
|
|
86
|
+
var canon = [0, commit.pubkey, commit.authorDate, 17, [], commit.hash]
|
|
87
87
|
|
|
88
88
|
canon = JSON.stringify(canon)
|
|
89
89
|
var id = sha256(canon)
|