11-22-2024
BSV
$67.86
Vol 220.99m
-1.94%
BTC
$98245
Vol 125945.55m
3.91%
BCH
$489.99
Vol 2335.14m
10.57%
LTC
$90.88
Vol 1474.77m
7.91%
DOGE
$0.38
Vol 9556.64m
1.25%
Getting your Trinity Audio player ready...

This post was first published on Medium. Read Delegation in Bitcoin.

We introduce a simple yet universal delegation mechanism, an alternative to the script-level delegation we have developed.

Transaction-Level Delegation

Let us say Alice wants to delegate her UTXO to Bob. She creates a transaction of two inputs: one spending her UTXO and the other spending Bob’s UTXO. She signs her input using sighash flag SIGHASH_NONE, meaning all outputs of the transaction can be malleated. She hands the partially signed transaction to Bob. Bob can sign the second input and send Alice’s coins to whatever outputs he wants. Essentially, Alice has delegated her UTXO to Bob.

Delegation in Bitcoin: Part 2

Delegation

Bob’s UTXO can come from an existing UTXO controlled by Bob. If no such UTXO exists, Alice can simply create one and deposit minimal dust-level bitcoins into it.

Compared to script-level delegation, the delegated UTXO does not need to be transferred to a delegate smart contract first. It can be deployed to existing wallets today.

Acknowledgements

Original idea comes from this post in the bitcoin-dev mailing list.

Watch: Coingeek New York panel, BSV vs. Other Blockchains: Differences that Matter for Developers & Businesses

Recommended for you

David Case gets technical with Bitcoin masterclass coding sessions
Whether you're a coding pro or a novice, David Case's livestream sessions on the X platform are not to be...
November 21, 2024
NY Supreme Court’s ruling saves BTC miner Greenidge from closing
However, the judge also ruled that Greenidge must reapply for the permit and that the Department of Environmental Conservation has...
November 20, 2024
Advertisement
Advertisement
Advertisement