Hot answers tagged

6

You are using testnet. Addresses starting with "M", "N", "2" and "tb1" are testnet addresses.


4

Why did the transaction was accepted by the network despite not working as intended The network does not check the validity of output scripts. An output script can contain pretty much any data and the transaction will still be consensus valid. But your transaction is not actually invalid. It's just like a bare multisig now, but since the pubkeys are hashes, ...


4

Yes, if you lose the redeemscript, the funds are going to be locked forever. In order to spend a p2sh output, you need to both reveal the redeemscript that hashed to the address and then satisfy the conditions of that redeemscript. If the script cannot be recovered, it cannot be satisfied and the funds will not be spendable.


3

Is the addmultisignature API call dependent on order of public keys in the array? Or is it lexicographically sorted? Yes. It is not sorted according to BIP67 automatically. How did I confirm? I used the below command in bitcoin core: addmultisigaddress 2 "[\"0318370919cfceb3d260081eeca3cae19f941eec321f597c48a64839178ea1e3e0\",\"...


2

In short, it knows because it knows. Whatever information was used to make the original wallet construct the addresses (whether that consists of a seed, a set of keys, a master key, a descriptor, a mnemonic phrase, ...) must be imported into the new wallet too. The P2SH redeemscript is not created randomly: there is a procedure to generate it from keys the ...


2

On that wiki link you posted it states: If any opcode marked as disabled is present in a script, it must abort and fail. An attempted UTXO spend with a failed script will not be relayed between nodes running Bitcoin Core (and other major implementations) and certainly won't be included in a mined block. The mainnet coinbase transaction you link to includes ...


2

Because the address you are using is a P2SH-P2WPKH address as you mention (sh (wpkh ())), you get the output "isscript": true, "iswitness": false It is talking only about the top level (P2SH), because it is a P2SH address, regardless of what the script "inside" it encodes. It doesn't "see" the underlying P2WPKH when ...


2

How would people (likely power users) even be aware that these funds were out there, and available to be redeemed if they solved the puzzles. As you mentioned, it could be that either the creator of the UTXO publicized it, or someone parsing through blockchain data discovered it (and perhaps then publicized it). In the case of the hash collision bounties, ...


1

Your redeem script has the length of the script prepended to it (2d), which causes the stack execution to finalize with the redeem script in the stack as data instead of interpreting it as another script. The script interprets the 2d as if you intended to put data in the stack with a length of 45 bytes, instead of actually interpreting your redeem script as ...


1

P2SH addresses can either be P2SH-P2WPKH addresses (wrapped segwit) or they can be multisig or something else. If your wallet is using P2SH-P2WPKH addresses, the wallet should be able to recognize your address upon initialization. Otherwise, you will probably have to manually import that address. Regardless, the amount of btc held in that address is on the ...


1

Private keys are 256-bit numbers. The first "HEX" you list has 64 characters, which corresponds to 256 bit, while the other two have 66 characters. Since all three share the same first 64 characters, I surmise that the library you're using simply drops the additional data beyond the first 256 bit.


1

Inputs do not reference the value of the UTXO they spend. You need to look up the spent UTXO to find the value. Usually, this information is available to a node via the UTXO set, or can be looked up by inspecting the transaction that created the UTXO.


1

Private keys are simply 256bit random numbers. A seed phrase is simply a different way to generate 256bits of randomness in a more human-readable way. So, to answer your questions How does the generation of the other 2 Master Keys happen? You need to securely generate a 256bit random number. This can be done in software. You can also generate them in a ...


1

HD is really about back-ups and wallet recovery, a multisig address can be created from any public keys regardless how/where they were generated. Heck you could use the same public key 3 times, although I wouldn't recommend it I'm just trying to prove a point. To answer your exact questions: How does the generation of the other 2 Master Keys happen? Do you ...


1

Yes. Many of the malleability sources listed in BIP 62 still exist today. Most (if not all) are not standard, i.e. most nodes will not relay transactions that exploit them, but they are not consensus rules. So a miner can still perform malleability attacks.


1

I understand that: in "asm" i have RedeemScript. In txinwitness i have my signature and the pubblic key. Correct? Correct. in a P2SH-P2WPKH the witness contains the signature and the public key, and the script signature contains the redeem script. is it correct to say that, as an additional condition, to unlock a UTXO P2SH-P2WPKH, compared to a P2PKH, ...


Only top voted, non community-wiki answers of a minimum length are eligible