0

Suppose I have my own sidechain and have created a transaction of 100 BTCs from Bitcoin network to my Sidechain. To my understanding, this means 100 BTCs are now locked on Bitcoin Network and 100 pegged BTCs have been created in my sidechain.

Q1. What kind of address will hold these 100 pegged BTCs in my sidechain? Is it an address same as Bitocin wallet address?

Q2. Suppose Alice have 100 pegged BTCs in address A of sidechain, Alice made a transaction of 50 pegged BTCs to Bob which has another address (say address B). We now have 50 pegged BTCs in both address A and address B. How will Bob redeem pegged coins back to real BTCs in Bitcoin Network? Because if we see in Bitcoin's point of view, Alice is the authorized user to spend or redeem her 100 pegged BTCs back to real ones. Whereas Bob does not exist for Bitcoin Network who claims to possess 50 BTCs.

Gagan
  • 241
  • 3
  • 9
  • Welcome to Bitcoin.SE! A doozy of a question - I don't think you can do it. – Willtech Feb 27 '18 at 11:28
  • @Willtech You mean transactions are not possible in sidechains? – Gagan Feb 27 '18 at 11:30
  • Hmm make sense. Then what use case sidechains have? What benefits does it brings when pegged to bitcoin network? – Gagan Feb 27 '18 at 11:42
  • because you can build a whole new set of rules for transactions on sidechains. There you can create new logic, which is difficult to implement in bitcoin network, or doesn't need its high level of reputation/security/stability/availability... e.g. buy a coffee for very little tx fees. Or create smart contracts, that extend to the layer of OP-Codes. Or do whatever business logic you can think of. At one point in time the sidechain must make sure, that the right amount of bitcoins (a transaction) comes back to the bitcoin network. Otherwise bitcoin network will reject invalid tx. – pebwindkraft Feb 27 '18 at 12:01
  • See here: https://bitcoin.stackexchange.com/questions/37876/what-is-fed-peg-and-predefined-functionaries-with-sidechains/37885#37885 – pebwindkraft Feb 27 '18 at 12:01
  • @pebwindkraft As you said, "the right amount of bitcoins must comes back to the bitcoin network.". Is it necessary to use the same address by which bitcoins first traveled to sidechains at first place? Like Willtech said, Bob can't do this transaction to bitcoin network, and only Alice can do that. – Gagan Feb 27 '18 at 13:30
  • @Willtech forks are not sidechains – Osias Jota Feb 27 '18 at 14:06
  • @Willtech As per my understanding, all forks are not sidechains but all sidechains are forks. Right? – Gagan Mar 05 '18 at 11:15
  • @OsiasJota can you please verify the above statement? – Gagan Mar 05 '18 at 11:16
  • No sidechains are forks, nor sofware forks, neither chain forks. – Osias Jota Mar 05 '18 at 14:43
  • Read about the basic definition of sidechains – Osias Jota Mar 05 '18 at 14:43
  • @user16961 It seems that I was not correct and there are in fact experimental sidechains already running on Etherium. I will do some more reading and remove a couple of my comments to avoid confusion. – Willtech Mar 05 '18 at 20:33
  • 1
    Sidechain is a blockchain that runs in parallel to the main blockchain which extends functionality through interoperable blockchain networks allowing a decentralized way of transferring/synchronizing your tokens between the two chains. [pegged sidechains whitepaper](https://www.blockstream.com/sidechains.pdf) – Willtech Mar 05 '18 at 20:36
  • Also, see the excellent Q/A and article linked in the post linked above by @pebwindkraft - note that I have not yet read that the coins can be moved back onto the Bitcoin mainchain. – Willtech Mar 05 '18 at 20:45

1 Answers1

1

Q1: It depends on the sidechain. Every sidechain can implement their own rule to create and represent/encode adresses.

Q2: This is an active area of research. Some people propose implementing sidechains via Zero-Knowledge proofs or other ideas that either require Bitcoin rules to change or mining cooperation or both. Some sidechains already deployed, like RKS, propose there are a set of nodes you trust to hold custody of bitcoins transferred to the sidechain, much like a bank.

Osias Jota
  • 817
  • 5
  • 15