Bitcoin Forum
May 07, 2024, 06:59:18 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Sidecoin, a solution to the "spin-off" problem  (Read 2208 times)
tinybike (OP)
Jr. Member
*
Offline Offline

Activity: 39
Merit: 13

Last of the freelance physicists


View Profile WWW
December 05, 2014, 08:39:51 AM
 #1

joeykrug and I have implemented a proof-of-concept version of the "Bitcoin spin-off" discussed in https://bitcointalk.org/index.php?topic=563972.0.

Website: http://www.sidecoin.net
Source: https://github.com/AugurProject/Sidecoin
Whitepaper: http://augur.link/sidecoin.pdf

"Sidecoin" (our demo/example implementation) is a fork of Bitcoin 0.9.1.  We modified it to support loading "snapshot" balances into the first (non-genesis) block, as well as trustless sidecoin claims using a new "claimtx" RPC command.  Details are in the whitepaper!

Hope this can be useful to someone  Smiley

- Jack

Augur: a decentralized platform for prediction markets
http://www.augur.net
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715108358
Hero Member
*
Offline Offline

Posts: 1715108358

View Profile Personal Message (Offline)

Ignore
1715108358
Reply with quote  #2

1715108358
Report to moderator
1715108358
Hero Member
*
Offline Offline

Posts: 1715108358

View Profile Personal Message (Offline)

Ignore
1715108358
Reply with quote  #2

1715108358
Report to moderator
1715108358
Hero Member
*
Offline Offline

Posts: 1715108358

View Profile Personal Message (Offline)

Ignore
1715108358
Reply with quote  #2

1715108358
Report to moderator
tristbreak
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
December 06, 2014, 08:11:01 PM
 #2

Good work! It is exciting to see this problem solved. I must ask why you choose to use bash script for your snapshot? This will be slower than the c++ you use for your altcoin.
BTCDDev
Sr. Member
****
Offline Offline

Activity: 255
Merit: 250


View Profile
December 06, 2014, 08:58:57 PM
 #3

Nice work.

BitcoinDark: RPHWc5CwP9YMMbvXQ4oXz5rQHb3pKkhaxc
Top Donations: juicybirds 420BTCD ensorcell 84BTCD Stuntruffle: 40BTCD
Top April Donations: juicybirds 420BTCD; ensorcell: 42BTCD
tinybike (OP)
Jr. Member
*
Offline Offline

Activity: 39
Merit: 13

Last of the freelance physicists


View Profile WWW
December 06, 2014, 11:13:22 PM
Last edit: December 07, 2014, 12:16:54 AM by tinybike
 #4

Nice work.
Good work! It is exciting to see this problem solved. I must ask why you choose to use bash script for your snapshot? This will be slower than the c++ you use for your altcoin.

Thanks!  It was a fun project.  As for why we used bash instead of C++ for the snapshot script, basically, it is because we were automating a bunch of shell commands, which naturally made us reach for a bash script.  Since the snapshot is something that only needs to be constructed once (per spin-off), we favored ease-of-coding over speed.

That being said, you could imagine a workflow going straight from blockparser (memory-lean version) to loading balances into the new blockchain's utxos.  We opted for an intermediate "snapshot" file because 1) it is relatively portable (2+ orders of magnitude more compact than the blockchain itself), and 2) the file is guaranteed to be exactly the same for everyone using it.

Another contributing factor is that, even after downloading the Bitcoin blockchain, running a full blockparse takes quite a while -- about an hour on my (somewhat dated) hardware.  It definitely isn't something that you want every user of a new coin to have to sit through!

Augur: a decentralized platform for prediction markets
http://www.augur.net
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!