cmdruid / tapscript

A humble library for working with Tapscript and Bitcoin Transactions.
https://www.npmjs.com/package/@cmdcode/tapscript
Creative Commons Zero v1.0 Universal
196 stars 50 forks source link

Address change because script change #10

Closed qqpet24 closed 1 year ago

cmdruid commented 1 year ago

The address is calculated using the script, so if the script changes then the address must also change. There is no way around this as the address is a cryptographic representation of the scripts. Once it is published and coins are locked to it, there is no changing it. You have to spend the coins in order to move them to a new address.