Auto Added by WPeMatico

How to get the raw signature data of a transaction?

With the use of segwit, signature data is no longer part of transaction body and thus can’t be retrieved from block explorers. So is there a Bitcoin rpc method in order to get it directly without having to extract it from transaction manually? My aim is to retrieve the public key behind segwit Bitcoin addresses from EC signature which requires the signature along signed data.

Continue Reading How to get the raw signature data of a transaction?

Why is BIP32 root key different for different standards(purposes)?

When generating key on https://iancolemen.com/bip39/, the BIP32 Root Key changes as I change the derivation path tab, e.g. BIP32, BIP44, BIP39 etc. Why is this the case? Isn't BIP32 Root Key the m at the beginning of the derivation path and the different standards are subsequent purpose that should not affect the root key? Contrary to the above, when I generate addresses with the following code in go, the master key printed always matches the BIP32 Root Key on iancolemen.com. And changing the purpose does not affect the address generated in the end, it is always a BIP32(legacy) address, instead…

Continue Reading Why is BIP32 root key different for different standards(purposes)?

How Many Clients Could Not Send to Bech32 Addresses?

For my client, I have set up a custom BTC payment solution using BTCPay Server. The wallets I have configured in BTCPay Server produce only bech32 (bc1xxx) addresses for payments (cheapest transaction fees). My client (who ordered the solution) has asked me how many of his customers would be unable to send a payment to a bech32 address? His concern is that his clients will be unable to pay their invoices in BTC because their wallets will be unable to send payments to the bech32 addresses. As I can see it, I can go back to my client with one…

Continue Reading How Many Clients Could Not Send to Bech32 Addresses?

how to generate bech32/segwit address from pubkey in golang

I am trying to generate bech32/segwit address in golang with the following code: var pubkey *btcec.PubKey address, err := btcutil.NewAddressPubKey(pubkey.SerializeCompressed(), chainParams) if err != nil { log.Fatal(err) } address.SetFormat(btcutil.PKFCompressed) bech32Bytes, err := bech32.ConvertBits(address.ScriptAddress(), 8, 5, true) if err != nil { log.Fatal(err) } segwitaddr, err := bech32.Encode("tb", bech32Bytes) if err != nil { log.Fatal(err) } and also more simply var e *hdkeychain.ExtendedKey address, err := e.Address(chainParams) bech32Bytes, err := bech32.ConvertBits(address.ScriptAddress(), 8, 5, true) if err != nil { log.Fatal(err) } segwitaddr, err := bech32.Encode("tb", bech32Bytes) if err != nil { log.Fatal(err) } But neither segwitaddr generated match the bip39 address…

Continue Reading how to generate bech32/segwit address from pubkey in golang

End of content

No more pages to load