Questions tagged «bitcoinlib»

2
如何用分类账签署比特币psbt?
我正在尝试按照我在这里找到的从bitcoinjs-lib签名Psbt事务: https://github.com/helperbit/helperbit-wallet/blob/master/app/components/dashboard.wallet/bitcoin.service/ledger.ts 我检查了账本和bitcoinjsLib的压缩公钥是否都返回了相同的值。 我可以使用bitcoinjs-lib ECPair对其进行签名,但是当我尝试使用分类帐对其进行签名时,它始终无效。 有人可以帮我指出我在哪里做错了吗? 下面的代码中已经提到了这些变量,但是为了清楚起见: - mnemonics: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about - previousTx: 02000000000101869362410c61a69ab9390b2167d08219662196e869626e8b0350f1a8e4075efb0100000017160014ef3fdddccdb6b53e6dd1f5a97299a6ba2e1c11c3ffffffff0240420f000000000017a914f748afee815f78f97672be5a9840056d8ed77f4887df9de6050000000017a9142ff4aa6ffa987335c7bdba58ef4cbfecbe9e49938702473044022061a01bf0fbac4650a9b3d035b3d9282255a5c6040aa1d04fd9b6b52ed9f4d20a022064e8e2739ef532e6b2cb461321dd20f5a5d63cf34da3056c428475d42c9aff870121025fb5240daab4cee5fa097eef475f3f2e004f7be702c421b6607d8afea1affa9b00000000 - paths: ["0'/0/0"] - redeemScript: (non-multisig segwit) 00144328adace54072cd069abf108f97cf80420b212b 这是我拥有的最低可重复代码。 /* tslint:disable */ // @ts-check require('regenerator-runtime'); const bip39 = require('bip39'); const { default: Transport } = require('@ledgerhq/hw-transport-node-hid'); …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.