Closed ChristianOConnor closed 5 months ago
The input is spending a random utxo from my test wallet. You will want to replace it with a utxo from your own test wallet.
Similarly, the output is going to a random address generated from my test wallet. You will want to replace it with an address from your own wallet.
I am using the wallet built into in Bitcoin Core in order to manage my utxos and addresses for testing.
I hope that makes sense. Let me know if you have further questions about it.
This seemingly random address appears in several places but I will use the inscribe.test.ts file as an example https://github.com/cmdruid/tapscript/blob/master/test/example/taproot/inscribe.test.ts. Notice this code:
See
scriptPubKey: Address.toScriptPubKey('bcrt1q6zpf4gefu4ckuud3pjch563nm7x27u4ruahz3y')
... Why is bcrt1q6zpf4gefu4ckuud3pjch563nm7x27u4ruahz3y being used as the script that is locking the funds? Is this just an address chosen at random or is it derived from another piece of code that I'm missing?Does it just mean that address where the UTXO is being spent chosen at random?