-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some resources and notes for locking scripts #4256
Comments
I believe it would be better to use BiS Artifacts collection utilizes the locking mechanism below: Also an example of locking-unlocking with 5 block lock: A point to keep in mind: https://bitcointalk.org/index.php?topic=1313175.0 lock-time is signed integer so it needs zero padding for values that start with bit 1. |
You can use block height with |
I didn't know that we could use block height with CLTV. However if we use absolute block height, the lock wallet address will change for every locked utxo and it would be much harder to implement it with current indexers and wallets. If we use relative block height with a few pre-selected standard heights, it would mean the indexer only needs to track a few extra wallet addresses which would be very easy to implement. Also with absolute block height limit, since users cannot control which block height the transaction will be mined, they may not be able to lock it the exact amount of blocks needed and probably one of the most requested feature which is staking will require a certain amount of lock to give something in return. |
@samedcildir Good point re: address discovery! And |
The text was updated successfully, but these errors were encountered: