-
Hi!
No matter how often I try, the generated HEX seems to be invalid when I try to decode it on https://testnet.smartbit.com.au/txs/decodetx
```ts
import { ECPair, networks, TransactionBuilder…
tiehm updated
5 years ago
-
I happened to have old WIF for the uncompressed public key.
Then I made a p2sh segwit address out of it, using bitcoinjs v3:
```
let keyPair = bitcoin.ECPair.fromWIF(secret);
let p…
-
Consider adding or switching to Schnorr Signatures?
There are a few ways to do this, Bitcoin Cash went with overloading opcodes depending on the shape of the signature. ESDCA if the signature is DE…
tynes updated
4 years ago
-
I used to have this code in bitcoinjs v3:
```
function _nodeToBech32SegwitAddress(hdNode) {
const pubkeyBuf = hdNode.publicKey;
var scriptPubKey = bitcoin.script.witnessPubKeyHash.output.enc…
-
e.g. getnewaddress returns something like:
AzpkfveJCn2frbBWqxFBTsbkDWfNAUo1Q3zSU7Fyt8VQ9FdRFFZvk5sGJSWk2AGnxYmyoxwFexuWebku
In the confidential-transactions page we refer to:
"In the Elements p…
-
As soon as we make all witness transactions as default we should change the genesis coinbase outputs to be P2WPKH.
-
In version 0.4.1 print(bitcoinKit.debugInfo) output 3 addresses for each path index; a [BIP32? 84?] bech32, a [BIP44] legacy, and a [BIP49? 141?] SH(WPKH). In v0.5.1 only the bech32.
Is there a cl…
-
I am attempting to support bip 49. I seem to be correctly deriving keys, but the address does not match what I am expecting.
Leveraging this site for comparison. https://iancoleman.io/bip39/
My …
-
I have a scenario where there is a program A that will generate a transaction of multiple P2WPKH inputs and distribute to many different person, each possessing another program B to sign the transacti…
-
`const p2pkh = bitcoin.payments.p2pkh({ pubkey: p2wpkh.pubkey }) // because P2WPKH is annoying`
https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/transactions.js#L305
The s…