Has anyone built a fully private L2/sidechain on top of BTC ? Would anyone here be interested in building this with me using Python ?
This could be done with multi-party computing(MOC) and Shamir secret sharing .
Shamir secret sharing could be used to store Bitcoin private keys and MPC can be used to sign transactions in a fully decentralized private way.
A protocol like this would:
- Keep all balances and transactions completely private and encrypted.
- Support fully private smart contracts where no party knows the variables inside of smart contract
I am able to build this but wonder if there is any appetite for this from the community. MPC has been around for a few years now and nobody really seems to be interested in this.
This library has all the required MPC primitives for this potential project
https://github.com/lschoe/mpyc
I’d be interested in contributing in order to get some development experience. I only started working my way through backend development courses (mainly python but also some Bitcoin-specific courses) last year but come from a quantitative field where I wrote ugly but reproducible code for academic papers. Any suggestions how to transition into Bitcoin development?
How would this compare to client side validation solutions like rgb?
You'll probably want to look into something with a standardized DKG mechanism instead of plain Shamir's (or rolling your own), like FROST.
I am very interested in this, most especially if it could somehow be integrated or developed into the existing Lightning Network but am unable to fund it for the time being. Hopefully by end of this year. I have not taken the time yet to study ecash or fedimint but Im curious as to how your ambitions would improve the solutions posed by those protocols already.
It is an interesting idea and certainly one that taps into a real gap in the current Bitcoin ecosystem. While there have been attempts at privacy solutions for Bitcoin most focus on transaction-level obfuscation such as CoinJoin or privacy-focused overlay networks. What you are proposing with a fully private L2 or sidechain using MPC and Shamir secret sharing is more ambitious because it would create an environment where every layer of asset management and smart contract execution is encrypted and inaccessible to outside observation. That is fundamentally different from what exists now.
If implemented correctly the technical challenge here is not just in getting MPC to work for decentralized signing but ensuring that consensus and state verification can occur without leaking any critical information. That means designing a system where validators can confirm a transaction or a contract outcome without learning the underlying inputs. Achieving this requires strong cryptographic rigor and a careful consideration of how private state interacts with public consensus.
One potential point of friction is that Bitcoin’s base layer was not designed for this level of abstraction and privacy. You would likely need a specialized sidechain architecture that has its own consensus rules while anchoring to Bitcoin for final settlement. That way BTC is the ultimate source of truth but the sidechain handles the private computation and contract logic.
This is technically feasible and there are enough cryptographic tools available today to make it happen. The real question is whether there will be enough developer and community interest to sustain the project. The market tends to reward privacy innovations in spurts and only when they are user-friendly and integrated into existing workflows. If you can make this work in a way that feels seamless to users it could be a powerful addition to Bitcoin’s utility and resilience.
Yes it would definitely be a heavier lift in terms of ensuring all MPC primitives are applied correctly. In some cases checks for hostile / dishonest actors would have to be added.
Also yea this would definitely require a sidechain / L2.
My experience with crypto is that the community rewards new coins that are easy to invest into. Not too many people even understand the fundamentals of Bitcoin.