Author Topic: Blockchain for building upon  (Read 20582 times)

zack

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 384
    • View Profile
Re: Blockchain for building upon
« Reply #15 on: June 20, 2014, 07:26:29 pm »
https://github.com/zack-bitcoin/Truthcoin-POW #### edit: work is happening here now: https://github.com/BumblebeeBat/FlyingFox  ####

It supports:
multisig addresses
creating new pools of votecoins
sending the votecoins to other users
proposing decisions
encrypted vote on decisions
decrypt votes
SVD consensus
web-browser as GUI for everything above ^^^
Prediction markets
buying/selling shares on prediction markets

Next goal:
GUI support for creating prediction markets and trading shares
« Last Edit: March 10, 2016, 02:13:04 am by zack »

martinBrown

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Blockchain for building upon
« Reply #16 on: June 25, 2014, 12:31:38 am »
Not sure if its working... What's going on here?




Then I got this when I tried the latest commit (with the consensus stuff):


psztorc

  • Administrator
  • Sr. Member
  • *****
  • Posts: 464
    • View Profile
Re: Blockchain for building upon
« Reply #17 on: June 25, 2014, 05:30:54 pm »
Hey, very exciting! Thanks for your hard work.

Re: SVD consensus, I tried to rewrite it in python, awhile ago (it is in pylib), but that version is old. The R stuff is always the latest and greatest.

I will probably try to, separately, code the latest SVD in python, and then we can compare notes.
Nullius In Verba

zack

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 384
    • View Profile
Re: Blockchain for building upon
« Reply #18 on: June 27, 2014, 10:24:25 pm »
martinBrown, when you updated to latest commit, it was working the way I expect it to.
It is a POW blockchain right now, so you have to wait an average of 30 seconds for each block.

SVD consensus
I am using the R code you wrote. Python has a library for running R code, https://pypi.python.org/pypi/rpy2
on ubuntu I think it is: sudo apt-get install python-rpy2

zack

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 384
    • View Profile
Re: Blockchain for building upon
« Reply #19 on: July 10, 2014, 04:28:19 pm »
Blocktime is an average of 5 seconds now, so you don't have to be so patient.
I also updated the readme a bit to make it easier to tell what is going on.

For now, there is a 20-block cycle.
1-10: votecoin-holders may give encrypted votes on decisions. (in the final version of truthcoin, this step will take   1000+ blocks)
11-15: votecoin-holders may decrypt their votes
16-20: if there are at least 3 votecoin-holders, and at least 5 decisions they have voted on, then we can do SVD to come to consensus   about these decisions.

psztorc

  • Administrator
  • Sr. Member
  • *****
  • Posts: 464
    • View Profile
Re: Blockchain for building upon
« Reply #20 on: July 10, 2014, 05:43:40 pm »
I get a syntax error upon the importing:

transactions.py line 252

Code: [Select]
if len(tx['states']p)!=len(tx['states_combinatory'])+1:
Nullius In Verba

zack

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 384
    • View Profile
Re: Blockchain for building upon
« Reply #21 on: July 10, 2014, 07:40:50 pm »
I get a syntax error upon the importing:

transactions.py line 252

Code: [Select]
if len(tx['states']p)!=len(tx['states_combinatory'])+1:

I just fixed it. You have to re-download to see my changes.

psztorc

  • Administrator
  • Sr. Member
  • *****
  • Posts: 464
    • View Profile
Re: Blockchain for building upon
« Reply #22 on: July 10, 2014, 11:53:12 pm »
Cool, I got a node to run.

I had to go to http://localhost:8700 (not 8701) to see anything, and even then I could only see my wallet and balance. I used an old Ubuntu 13.10, will update later today.

I didn't see how to create a jury, or give myself money.
Nullius In Verba

zack

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 384
    • View Profile
Re: Blockchain for building upon
« Reply #23 on: July 11, 2014, 03:43:00 am »
You can't make a jury till you have enough money. You have to mine at least one block.

If it still doesn't work, copy/paste the error message in the terminal to me.
old ubuntu should be fine, I think this would work on mac/windows too.

psztorc

  • Administrator
  • Sr. Member
  • *****
  • Posts: 464
    • View Profile
Re: Blockchain for building upon
« Reply #24 on: July 11, 2014, 10:58:52 pm »
How do I mine a block? I want to try it out!
Nullius In Verba

zack

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 384
    • View Profile
Re: Blockchain for building upon
« Reply #25 on: July 12, 2014, 12:47:43 am »
When I start the program by running: "python workers.py"
It mines 3 blocks within the first 10 seconds.

I am feeling un-confident about explaining how to use the software via forum posts.

I think the quickest way to do this is for us to used a shared desktop. http://www.teamviewer.com/en/index.aspx
I will PM you with more details.

zack

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 384
    • View Profile
Re: Blockchain for building upon
« Reply #26 on: July 12, 2014, 12:50:30 am »
oh! I think I know why your money isn't going above 0.

The web-page doesn't automatically update when you mine new blocks. There is a button that says "refresh".
If you click it, you can see how much more money you mined since the last refresh.
Once you have non-zero money, you can create a branch or ask an existing branch a decision.

zack

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 384
    • View Profile
Re: Blockchain for building upon
« Reply #27 on: August 10, 2014, 09:25:16 pm »
The GUI in a browser was pretty annoying to me, so I redid it as a shell interface.
It should be ready in the next couple of days, so I want people to make addresses.
I need at least 4 other people's addresses in order to make a voting pool big enough for us to do the SVD.
I will also give some free coins to everyone who goes to the trouble of making an address.

In the file "custom.py" you need to change the line that says "brainwallet = 'brain wallet' "
the 'brain wallet' part should be replaced with your password of choice.

The command "my_address" will tell you your address.

I don't have windows to test with.

psztorc

  • Administrator
  • Sr. Member
  • *****
  • Posts: 464
    • View Profile
Re: Blockchain for building upon
« Reply #28 on: August 11, 2014, 12:05:18 am »
Of course I will do it.
Nullius In Verba

zack

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 384
    • View Profile
Re: Blockchain for building upon
« Reply #29 on: August 20, 2014, 12:41:48 am »
The testnet is running.
We can make bets and do SVD and everything.

It is POW blockchain by SHA256.
It uses the the same elliptic curve as bitcoin to secure addresses.

https://github.com/zack-bitcoin/Truthcoin-POW #### edit: work is happening here now: https://github.com/BumblebeeBat/FlyingFox ####
« Last Edit: March 10, 2016, 02:13:46 am by zack »