10
votes
Accepted
Why do compressed and uncompressed public keys have to produce different addresses?
My question is: Why cant you just uncompress the compressed public key (effectively making it an uncompressed public key) and then derive the address. That way even if you use the compressed key, ...
8
votes
Accepted
Why doesn't signet use a unique bech32 prefix?
It used to, but we switched to using the testnet one to simplify things. It's a testnet so it doesn't really impact anyone if you screw it up (go to the faucet and get more if you lose them), and ...
7
votes
Accepted
How were P2PK transactions made?
I know of only two ways that P2PK output were commonly constructed:
Bitcoin's original codebase would use P2PK in mined coinbase outputs. This practice disappeared as the coinbase constructed ...
6
votes
Accepted
Can I use my Coinbase address to receive bitcoin? Why is it shorter than a normal address?
Normal (old) P2PKH addresses (1...) and P2SH addresses (3...) are 34 characters long. The newer native segwit addresses (bc1...) are longer, because they're case-insensitive and (in some cases) use ...
5
votes
Why doesn't signet use a unique bech32 prefix?
It was discussed here. One of the co-authors of BIP325 stated:
People think that the test networks should use the same prefixes so it was changed to match testnet.
Perhaps this could be clarified in ...
5
votes
Accepted
What are the OP codes associated with bc1?
Native segwit scriptPubKeys are of the form OP_n + <data>, so first a single number opcode followed by a push of some data (called the witness program). Specifically:
For P2WPKH (pay to witness ...
5
votes
Can I use my Coinbase address to receive bitcoin? Why is it shorter than a normal address?
There are a number of different standard output types for Bitcoin transactions. Most standard types use addresses as shorthand to encode the spending conditions.
The output types and the corresponding ...
4
votes
Accepted
How can an attacker change the address to receive someone's reward
So is there any way for the attacker to actually receive the rewards?
If the attacker isn't limited by hashrate, then they can obviously just fix the proof of work on the modified block. But at that ...
4
votes
Calculating addresses from Bitcoin transaction data
In short, the answer to your question depends on what you mean by "address". Historically, there are two different concepts with that name which I'll refer to as payment destinations and ...
3
votes
Accepted
Retrieving bitcoin address of the receiver of a transaction with bitcoinrpc
The "address" field in the Bitcoin Core RPC output is present for all transaction outputs for which a corresponding address exists. In the first 10000 blocks there are lots of pay-to-public-...
3
votes
Accepted
What is the standard or best practice for bitcoin wallet address labeling, if any?
BIP referenced by Murch in the comments has been opened as BIP-329
3
votes
Accepted
how to hash a bitcoin address for transactions?
To get the same result you must decode the address, which means convert the base58 to hexadecimal.
1JKRgG4F7k1b7PbAhQ7heEuV5aTJDpK9TS becomes 00bdf63990d6dc33d705b756e13dd135466c06b3b55850d39d
Where:
...
3
votes
Accidentally sent money to donation address on bitcoin.org website
how I can take it back
You can't take Bitcoin money. Confirmed Bitcoin transactions cannot be cancelled or reversed.
Now the money are on Bitcoin org like a donation
If you sent money to the ...
3
votes
Accepted
Baffled by endianness: How do I compute the HASH160 of the public key of a base58 address?
There should be no endianness issues here at all.
Bitcoin's handing of endianness is sometimes weird in its human interfaces (e.g. transaction and block hashes are printed in reverse order, because ...
3
votes
Accepted
Adding a legacy address to an existing Electrum wallet
Yes you can add it to your electrum wallet as well, it support importing different types of addresses, you just gonna have to create a separate wallets for each address type (legacy, SegWit, and ...
3
votes
Retrieve address corresponding to pubkey using bitcoin-cli/RPC
The ScriptPubKey 2103f0cc6d142d14a40937f12dbd99dbd9021328f45759e26f1877f2a838876709e1ac is a pay-to-public-key. There is no defined address for this output type. There is therefore no way to retrieve ...
2
votes
Accepted
Actively used bech32(m) address with invalid checksum?
The following address uses witness version 0
Correct.
and its checksum is the one expected for bech32m addresses.
No, it uses the bech32 checksum. What makes you conclude that it is bech32m?
...
2
votes
Is the G in Elliptic Curve same for Bitcoin and Ethereum?
Is the G in elliptical curve same for bitcoin and ethereum?
Yes Ethereum also uses the secp256k1 curve that is defined using the generator point:
Gx = ...
2
votes
Translating inputs (and outputs) to find addresses involved in transaction?
An address is just a standardized way to encode an output script. They aren't part of the Bitcoin protocol, and only a few standard scripts have an associated address. As of now these are P2PKH, P2SH, ...
2
votes
How does the bitcoin network use public and private keys when one wants to transfer funds?
what is the process that is actually happening under the hood when I click the 'transfer Bitcoin' button of my wallet in terms of the keys?
Your wallet selects from available coins (UTXOs for which ...
2
votes
Accepted
Is the witness `version` of a bech32 address required to "send spendable funds" to the address?
Can Alice still "send spendable funds" to Bob?
If she recovers the witness version before converting the address to the scriptPubKey she puts in the transaction, yes. Otherwise, no.
All ...
2
votes
Accepted
What "a possible destination for a Bitcoin payment" means in address definition?
I believe it's just saying "possible" because a created address may never end up being sent to; in fact, it might never be shared with a payer at all.
2
votes
Accepted
How can I reproduce the output of lightning-cli newaddr?
If you build CLN with the developer options (most likely you did), then you have the dev-listaddrs command that you can use to list all addresses that have been generated.
It's a developer only ...
2
votes
Accepted
Can Electrum only import private keys of P2PKH addresses?
To import private keys of P2SH addresses ("3EktnHQD7RiAE6uzMj2ZifT9YgRrkSgzQX") or Bech32 addresses ("bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4") into Electrum, prefix them with &...
2
votes
Accepted
Meaning of BTC "wallet address" and any difference with transaction address?
Wallets and Accounts
There are two ways of "owning" Bitcoin. Wallets or Accounts.
Wallets are the way originally intended by the creator of Bitcoin. They allow one person to pay money to a ...
2
votes
Is it possible to retrieve input addresses and input values of bitcoin transactions from raw blk.dat files?
Is it possible to get the address and the value of the input from the blk.dat files?
Yes. It is possible. After all, that's effectively what blockchain explorers do.
I would try to do something like ...
2
votes
Accepted
Which are considered not-for-public fields of the ones returned by getaddressinfo?
From a security perspective (i.e. could directly lead to loss of funds) the only thing you should be worried about are private keys or seeds that are used to generate private keys. There are no ...
2
votes
How to explore hardened addresses in bitcoin core descriptor wallet
You've imported the descriptor with "internal": true which means that the descriptor will be used only for change addresses. You cannot retrieve any addresses from it with getnewaddress as ...
2
votes
Accepted
Get the scriptPubKey from a Taproot address
You can use the reference Python implementation of bech32 / bech32m. Decode the address using bech32_decode and get the human readable part, data encoded (the scriptPubKey you are looking for), and ...
2
votes
In bitcoin core can ScriptToUniv give us wallet address of public key?
There is no address format that can produce a P2PK script. You can produce a P2PKH address from a pubkey with the process that you describe, but that address will result in a P2PKH script. This is a ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
address × 1054wallet × 208
transactions × 200
bitcoin-core × 120
address-generation × 115
public-key × 100
private-key × 97
blockchain × 71
bitcoind × 43
security × 43
electrum × 34
segregated-witness × 32
bip32-hd-wallets × 29
balance × 29
privacy × 25
vanity-address × 25
client × 24
bech32-address × 24
blockchain.info × 23
script × 23
multi-signature × 23
hash × 22
api × 21
change × 21
development × 20