Bitcoin Forum
May 01, 2024, 03:22:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin lock time function  (Read 114 times)
Sanglotslongs (OP)
Sr. Member
****
Offline Offline

Activity: 448
Merit: 280



View Profile
August 23, 2021, 08:42:41 PM
Merited by vapourminer (2), HCP (2), ABCbits (1)
 #1

Hello,

I know there is a function to make your bitcoins unspendable until block X.

Is this knowledge (block number) public ?

If yes do you have example of addresses that have fund locked that are known ?

I guess it's a pretty unusual function to use.
1714533753
Hero Member
*
Offline Offline

Posts: 1714533753

View Profile Personal Message (Offline)

Ignore
1714533753
Reply with quote  #2

1714533753
Report to moderator
1714533753
Hero Member
*
Offline Offline

Posts: 1714533753

View Profile Personal Message (Offline)

Ignore
1714533753
Reply with quote  #2

1714533753
Report to moderator
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714533753
Hero Member
*
Offline Offline

Posts: 1714533753

View Profile Personal Message (Offline)

Ignore
1714533753
Reply with quote  #2

1714533753
Report to moderator
DannyHamilton
Legendary
*
Offline Offline

Activity: 3374
Merit: 4612



View Profile
August 23, 2021, 09:30:17 PM
 #2

Hello,

I know there is a function to make your bitcoins unspendable until block X.

Is this knowledge (block number) public ?

Yes.

If yes do you have example of addresses that have fund locked that are known ?

No, I don't have an example.  Hopefully someone else with that information will stop by shortly and reply with a link to a block explorer with such a transaction ( or at least with the transactionID)
Upgrade00
Legendary
*
Offline Offline

Activity: 2016
Merit: 2172


Professional Community manager


View Profile WWW
August 23, 2021, 09:35:04 PM
Merited by vapourminer (1)
 #3

I know there is a function to make your bitcoins unspendable until block X.
Yes, it's possible.
One option is to create a time locked transaction; In this condition, a transaction would not be available for verification or confirmation untilt the blockheight indicated in the transaction information. This means it would be unspendable by the receiving address until the specified time. This of course comes with its pros and cons;

• The transaction can be cancelled by the sending address,
• There can be a change to the Bitcoin network in the distant future that will render the transaction invalid.

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
August 24, 2021, 01:17:05 AM
Merited by pooya87 (2), ABCbits (2), vapourminer (1)
 #4

Yes, it's possible.
One option is to create a time locked transaction; In this condition, a transaction would not be available for verification or confirmation untilt the blockheight indicated in the transaction information. This means it would be unspendable by the receiving address until the specified time. This of course comes with its pros and cons;

• The transaction can be cancelled by the sending address,
• There can be a change to the Bitcoin network in the distant future that will render the transaction invalid.
That's not quite what the OP appears to be asking... This timelock (using nLocktime), actually makes the spending transaction invalid until a certain time.

It's not really locking bitcoins, as they can still be spent in other transactions.


To lock bitcoins... you would need to use the CheckLockTimeVerify (CLTV) or CheckSequenceVerify (CSV) opcodes to lock the UTXO themselves.


For an example of CLTV in action... I posted this example in another thread (it uses coinb.in and testnet): https://bitcointalk.org/index.php?topic=5287093.msg55533007#msg55533007

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5571


Self-proclaimed Genius


View Profile
August 24, 2021, 03:23:04 AM
Merited by vapourminer (1)
 #5

Is this knowledge (block number) public ?
You mean the "is the block number or time that you've set in the script, public?" right?

No as long as the address isn't re-used (there's no reason to reuse it after the lock time anyways).
The first time you funded the address where your bitcoins will be locked, it will look like just another 'send-to' P2SH or P2WSH transaction.
The txn may be available in the blockchain but they can't see its "redeem script" so they wont be able to see the block or time that you've set.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
DannyHamilton
Legendary
*
Offline Offline

Activity: 3374
Merit: 4612



View Profile
August 24, 2021, 03:45:43 AM
 #6

The txn may be available in the blockchain but they can't see its "redeem script" so they wont be able to see the block or time that you've set.

However, when the UTXO is eventually spent, the "redeem script" will be a part of the Txin-script and will therefore be publically available.
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5571


Self-proclaimed Genius


View Profile
August 24, 2021, 04:02:35 AM
 #7

The txn may be available in the blockchain but they can't see its "redeem script" so they wont be able to see the block or time that you've set.
However, when the UTXO is eventually spent, the "redeem script" will be a part of the Txin-script and will therefore be publically available.
Yes indeed, that's why I mentioned "as long as the address isn't re-used".
But in this particular use-case, there's no way that the 'unspent transaction output' can be spent before the lock time passed anyways.
So IMO it's safe to say, no.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!