Thomas Kerin

Results 149 comments of Thomas Kerin

I don't really follow the question - it returns an array with two elements - the parts (like decodeRelative) and the value ($parts[0] == 'm'), to tell you which it...

I checked the outpoint you referenced, and it looks like the value is 39000 sat, not 38000 sat. Segwit signatures happen to cover this value, and so it must be...

You should review BIP32, and BIP44. The bips are here: https://github.com/bitcoin/bips, and there's examples for bip39, bip32 here: https://github.com/Bit-Wasp/bitcoin-php/tree/1.0/examples I suggest you generate a bip39 seed, import it to electrum...

Pretty sure this example matches electrum and a trezor wallet: https://github.com/Bit-Wasp/bitcoin-php/blob/1.0/examples/trezor.bip32.php

For that case I'd probably use some of the KeyToScript things (though I've yet find a nice way to do that with multisig) or do it manually. I wouldn't have...

I wonder if a nice way to fix this would be `withScriptFactory(ScriptDataFactory $factory): self`?

Please copy/paste a snippet of the error, or at least tell me what dependency you have the trouble with. You could put it together with strrev() and pack(), see https://en.bitcoin.it/wiki/Transaction...

I don't understand why you don't just use the library, or tell me whats wrong with it?

https://github.com/Bit-Wasp/bitcoin-php/blob/master/examples/tx.spend.p2wpkh.php Check out the other tx.spend* examples as well. > link to your documentation broken, huh?

My bad, I'll update the readme! I moved the one deeper recently https://github.com/Bit-Wasp/bitcoin-php/tree/master/doc/documentation