[
At the moment, Tremendous Testnet, a contract developer centered on Bitcoin and the Lightning Community, unveiled his newest invention, Hedgehog, a protocol for asynchronous layer two Bitcoin funds.
“It’s a protocol much like the Lightning Community,” Tremendous Testnet stated. “And this can be a layer 2 for Bitcoin funds, solely on this, not like the Lightning Community, each events don’t must be on-line, it’s asynchronous. One celebration can ship cash to the opposite, then they’re offline.”
In accordance with the challenge's GitHub, a characteristic of Hedgehog channels is its simplicity in comparison with Lightning channels. State updates in Hedgehog channels require the sender to easily suggest an replace, which the recipient can settle for at its comfort. This asynchronous nature permits better flexibility and effectivity in cost processing.
The protocol works by benefiting from a primitive in Bitcoin Script often called “revocable connectors”. These connectors are constructed on two much more primitive elements: revocable scripts and connector outputs. Revocable scripts enable both celebration to cancel a transaction after a sure time period, including a further layer of safety and management. Connector output lets you create a pre-signed transaction by spending a separate UTXO with the connector output, permitting the transaction to be invalidated by spending the connector output itself.
To elucidate how Hedgehog channels function, think about a state of affairs the place Alice opens a channel with Bob by sending a certain quantity of Bitcoin to a multisig handle. Utilizing revocable connectors, Alice can ship off-chain funds to Bob whereas he’s offline. These funds are embedded in a chunk of textual content, much like a test, and may be despatched by way of e mail or different communication strategies.
When Bob comes on-line, he has the choice to just accept or decline the cost. If he accepts, he can co-sign and broadcast the transaction to replace the channel stability. If he rejects, he can suggest an alternate transaction for Alice to contemplate.
One of many potential issues that Hedgehog wants to unravel is, for instance, if a celebration sends funds to their counterparty they lose the power to forcibly shut the channel as a result of they don’t have the opposite celebration's signature. The protocol offers a conditional revocation mechanism. The aim of this mechanism is to permit the sender to conditionally cancel the earlier place, giving each events time to override the transaction if wanted.
Moreover, Hedgehog solves the issue of funds being caught in a multisig handle if one of many events turns into completely unavailable. By together with time-lock circumstances within the script, the protocol can be certain that funds may be accessed after a sure time period, even when one celebration is unable to offer their signature.
Tremendous Testnet posted that it has an concept for learn how to use Hedgehog channels to create a federated coinpool, which it named Borough. Those that have an interest can be taught extra about it right here.