Integrate RGB into Bisq 2 #844
Replies: 3 comments 7 replies
-
Idea worth exploring. Eventually as on-chain fees grow we will need to transition most of Bisq functions, especially the 2-of-2 multisig used for trades, to a lightning network equivalent. RGB is the best currently available option. Superior to Taro IMHO. However this is a pretty tall order. I don't think that there are any devs anywhere that know enough about RGB and Bisq to do this now. We will need to recruit RGB devs and teach them about Bisq or have a Bisq dev learn RGB. Nevertheless it will be necessary. The sooner we start, the better. |
Beta Was this translation helpful? Give feedback.
-
@flix1 As mentioned above I guess RGB will not make the on-chain transaction for locking up funds obsolete. At least to my very limited understanding of RGB. |
Beta Was this translation helpful? Give feedback.
-
@LNP-BP Standards Association, leading and coordinating RGB development and adoption, is ready to propose an assistance in this effort. First of all, happy to cooperate on completion of JNI buildings - and here tools from @RGB-Tools, a project by @Bitfinex, may also be helpful. We are also working on providing more tools to build DAOs and starting a work on open DEX standard for Lightning - all these seems like a great cooperation areas. |
Beta Was this translation helpful? Give feedback.
-
Development of RGB[1] seems to enter a stage where it could be considered to be used for production projects.
The basic concepts have a lot in common with the guiding principles of the Bisq DAO:
RGB provides a generic implementation of those principles and comes with further improvements regarding privacy (confidential transactions) and scalability (use LN for time-stamping instead the blockchain). It will provide a virtual machine for contract execution and Rust can be used to write simple contracts. More advanced contracts will require writing code for AluVM in AluAssembly language.
I think we should consider to use RGB as the protocol execution layer for Bisq 2.
I did not look closer into RGB to be able to make concrete suggestions how that could look like. The basic idea for the Bisq 2 protocol execution layer was to create a framework with a state machine model to be utilized by the different protocols. This framework layer could be replaced by RGB.
I do not think that on-chain transactions can be avoided in case of the Bisq Multisig protocol as there need to be a guarantee that the BTC are locked up and RBG and a timestamping tx cannot provide that guarantee (though the lockup tx can be used for timestamping purposes - as the hash of the trade contract was added as opReturn data in earlier Bisq versions).
So I am not sure if the Bisq multisig protocol would benefit substantially from using RGB, but I think it would open up more flexibility for other protocols (hedge, loans,...).
To integrate RGB (written in Rust) with our Java environment we could use JNI (I guess they provide language bindings).
Another long term plan could be to re-implement the Bisq DAO in RGB and swap then the current BSQ with a burn-and-issue swap to the new DAO.
Any developer interested to look closer into RGB to see how Bisq could utilize it?
[1] https://rgb.tech, https://blackpaper.rgb.tech
Beta Was this translation helpful? Give feedback.
All reactions