Author

Topic: [ANN][XCP] Counterparty - Pioneering Peer-to-Peer Finance - Official Thread - page 142. (Read 1276789 times)

member
Activity: 118
Merit: 10
A difference which makes a difference
Block 333500 passed. Bring on the multisig and free asset issuance features in Counterwallet! Smiley

Multisig and Free asset names now live in Counterwallet!  Wink

Great! And they're off to a flying start - https://www.blockscan.com/asset!
full member
Activity: 121
Merit: 100
Counterparty General Manager
Block 333500 passed. Bring on the multisig and free asset issuance features in Counterwallet! Smiley

Multisig and Free asset names now live in Counterwallet!  Wink
member
Activity: 150
Merit: 29
Happy mother of 5 children
Here's a list of all XCP assets.
http://xcp.pw/allassets.html

More than 500 assets have a URL in their description. Quite a few land on a broken or empty page, but there are also a lot of "hidden gems".

I clicked through some of the links. The most interesting and creative projects I discovered:
http://docs.xcp.pw/ - http://coindocket.com (Bitcoin Consumer Protection)
http://dohod.xcp.pw    - http://dohod-s-nulya.ru/ (blog on business ideas - in Russian)
http://edeniancredit.xcp.pw - http://kingdomofedenia.webs.com/ (a micro-nation - unfortunatly disolved)
http://exodus.xcp.pw - http://exo.me/ (a design company)
http://teur.xcp.pw - More info: transparenteuros.tumblr.com (Transparent Euros)
http://bitlance.xcp.pw - bitlance.biz shares (freelance network)
http://fflteamk.xcp.pw   http://joelooney.org/ltbcoin/ffl/ (LTBc Fantasy  Football League)
http://muse.xcp.pw - Muse Coin www.musecoin.org
http://suminalta.xcp.pw   - http://altanimus.com/crypto/ (evolve into a decentralized company)
http://housecoin.xcp.pw - The house currency for Coinspace.io
http://cpnews.xcp.pw - Counterparty News - counterpartynews.com (my own project)
member
Activity: 118
Merit: 10
A difference which makes a difference
Block 333500 passed. Bring on the multisig and free asset issuance features in Counterwallet! Smiley
full member
Activity: 121
Merit: 100
Counterparty General Manager
Thank you for the thorough review! I'll take a look at addressing the issues when I get the chance. (Might be a day or so.)

Update: I've made some quick fixes for the two issues identified as blockers. I've added test cases for both, and they're both pushed to the repo:

https://github.com/PeterBorah/ethereum-powerball

That might be enough to fulfill the conditions of the bounty. However, as a matter of professional pride, I want to spend a little more time working on the quality of the code. The sorts of bugs found reveal what the weak spots are, and I have some ideas for making it more robust.* So, I'm going to try to work on that over the next couple evenings.

* For the programmers in the audience: I've basically got an implicit state machine with some pretty complex effects. I want to model it more directly so that it's easier to reason about and harder to end up in weird partial states. I'm also not dealing with storing data in a very principled way, so I want to think about encapsulating some of that.

Can you reply to this post with your XCP/BTC address.

Then I will send the link to the people who pledged to support your coding of this smart contract.

Me - 50 XCP
Matt Y - 20 XCP
Ivana - 10 XCP
Niceplum - 10 XCP
Tyhmakulho - 10 XCP
Ian - 10 XCP
Dante - not sure, expressed interest
Tusk - 2 XCP
Jonathan O - 3 XCP

Grand total: 115 XCP or about $600 equivalent at today's rates.

I am going to ask them all to send it directly to you as I don't want to be the middleman. Anyone sending please post here to confirm (if you have a bitcointalk account, some people may not).

Also, as I didn't explicit a reward for the code review, if you would not mind perhaps sharing a % of it to the person who did the code review.  https://gist.github.com/jorisbontje/353f69515a16cef7de7b I will ask him to put his XCP/BTC address in the git repo.

I have not had time yet to get this running on the testnet to try it out but will spend some time this week to learn how to do that (haven't run counterpartyd since Feb so that will be interesting...), and then am also asking some people around who know people in the gaming space to see if we could perhaps demo this capability for them and get them interested in using XCP and Ethereum for their business.

Thanks!  Cheesy

10 XCP on its way from Ivana http://www.blockscan.com/txInfo/11540071

Thanks guys, great work!
legendary
Activity: 1666
Merit: 1010
he who has the gold makes the rules
Can you reply to this post with your XCP/BTC address.

Then I will send the link to the people who pledged to support your coding of this smart contract.

Here you go: 1LeygZteCpjBstARoyt3uHgPhV8aJHsBAg

Again, thank you so much for setting this up! I think this is the first cryptocurrency I've actually earned, rather than buying. Smiley

Quote
Also, as I didn't explicit a reward for the code review, if you would not mind perhaps sharing a % of it to the person who did the code review.  https://gist.github.com/jorisbontje/353f69515a16cef7de7b I will ask him to put his XCP/BTC address in the git repo.

I was definitely planning to pass some of the bounty to the code reviewer. As I said, it was a very good and thorough review. Does 20% seem fair to everyone?

Let me know if you have any other smart contract work you need done. Wink And I'm still planning on trying out some code improvements over the next few days. I'll be happy to help debug if you run into any issues with your testing.

cool I put in the withdraw request of 50 xcp on poloniex to your address, i think they are installing a new server network card so it might take a few hours. I will post the tx ID when I see it.

I also sent an IM to all the others for the remaining amounts and will follow up.

newbie
Activity: 16
Merit: 0
Can you reply to this post with your XCP/BTC address.

Then I will send the link to the people who pledged to support your coding of this smart contract.

Here you go: 1LeygZteCpjBstARoyt3uHgPhV8aJHsBAg

Again, thank you so much for setting this up! I think this is the first cryptocurrency I've actually earned, rather than buying. Smiley

Quote
Also, as I didn't explicit a reward for the code review, if you would not mind perhaps sharing a % of it to the person who did the code review.  https://gist.github.com/jorisbontje/353f69515a16cef7de7b I will ask him to put his XCP/BTC address in the git repo.

I was definitely planning to pass some of the bounty to the code reviewer. As I said, it was a very good and thorough review. Does 20% seem fair to everyone?

Let me know if you have any other smart contract work you need done. Wink And I'm still planning on trying out some code improvements over the next few days. I'll be happy to help debug if you run into any issues with your testing.
legendary
Activity: 1666
Merit: 1010
he who has the gold makes the rules
Thank you for the thorough review! I'll take a look at addressing the issues when I get the chance. (Might be a day or so.)

Update: I've made some quick fixes for the two issues identified as blockers. I've added test cases for both, and they're both pushed to the repo:

https://github.com/PeterBorah/ethereum-powerball

That might be enough to fulfill the conditions of the bounty. However, as a matter of professional pride, I want to spend a little more time working on the quality of the code. The sorts of bugs found reveal what the weak spots are, and I have some ideas for making it more robust.* So, I'm going to try to work on that over the next couple evenings.

* For the programmers in the audience: I've basically got an implicit state machine with some pretty complex effects. I want to model it more directly so that it's easier to reason about and harder to end up in weird partial states. I'm also not dealing with storing data in a very principled way, so I want to think about encapsulating some of that.

Can you reply to this post with your XCP/BTC address.

Then I will send the link to the people who pledged to support your coding of this smart contract.

Me - 50 XCP
Matt Y - 20 XCP
Ivana - 10 XCP
Niceplum - 10 XCP 5 XCP (edit sorry i made a mistake too many numbers Shocked)
Tyhmakulho - 10 XCP
Ian - 10 XCP
Dante - not sure, expressed interest
Tusk - 2 XCP
Jonathan O - 3 XCP

Grand total: 115 XCP 110 XCP (EDIT) or about $600 equivalent at today's rates.

I am going to ask them all to send it directly to you as I don't want to be the middleman. Anyone sending please post here to confirm (if you have a bitcointalk account, some people may not).

Also, as I didn't explicit a reward for the code review, if you would not mind perhaps sharing a % of it to the person who did the code review.  https://gist.github.com/jorisbontje/353f69515a16cef7de7b I will ask him to put his XCP/BTC address in the git repo.

I have not had time yet to get this running on the testnet to try it out but will spend some time this week to learn how to do that (haven't run counterpartyd since Feb so that will be interesting...), and then am also asking some people around who know people in the gaming space to see if we could perhaps demo this capability for them and get them interested in using XCP and Ethereum for their business.

Thanks!  Cheesy
hero member
Activity: 647
Merit: 510
Counterpartying
Pretty sweet. Nicely done.
newbie
Activity: 16
Merit: 0
Thank you for the thorough review! I'll take a look at addressing the issues when I get the chance. (Might be a day or so.)

Update: I've made some quick fixes for the two issues identified as blockers. I've added test cases for both, and they're both pushed to the repo:

https://github.com/PeterBorah/ethereum-powerball

That might be enough to fulfill the conditions of the bounty. However, as a matter of professional pride, I want to spend a little more time working on the quality of the code. The sorts of bugs found reveal what the weak spots are, and I have some ideas for making it more robust.* So, I'm going to try to work on that over the next couple evenings.

* For the programmers in the audience: I've basically got an implicit state machine with some pretty complex effects. I want to model it more directly so that it's easier to reason about and harder to end up in weird partial states. I'm also not dealing with storing data in a very principled way, so I want to think about encapsulating some of that.
member
Activity: 129
Merit: 14
Hi

Is anyone else having problems with Rock Paper Scissors?



As my game history shows, I appear to win because my opponent often makes move "NA".

Please could someone explain why the game does not appear to work effectively?  Are players too impatient to wait for conformations?

The problem is that the other user isn't finishing the game. There's no way to tell why not.

Thanks for your reply.  Do you often play the game?  I keep trying but the other user never does anything.  This makes the game unplayable.  Cant the rules be changed so that players must reveal within say 2 blocks?
full member
Activity: 121
Merit: 100
Counterparty General Manager
Hi all, here's the new post from the foundation: http://counterpartyfoundation.org/counterparty-foundation-membership-benefits/

Thanks to all our new members and everyone showing their support!

Hopefully this post will explain the members program a bit better. If you have any questions feel free to contact us at [email protected]
newbie
Activity: 16
Merit: 0
Thank you for the thorough review! I'll take a look at addressing the issues when I get the chance. (Might be a day or so.)
legendary
Activity: 1666
Merit: 1010
he who has the gold makes the rules
yes the prize amounts cannot be the same as powerball since it is unrealistic to use fixed pay outs unless this is being done by a large entity who already has the funds.  the payout as i mentioned above should ensure that at least 33% of the tickets get something.  does it do that?

You're going to need a big bankroll regardless, if you want to run any sort of lottery. That's because, by definition, if you're working with fixed probabilities there's no guarantee reality will follow exactly the expected distribution. What if only one person enters, and they win a prize? (The situation is different with a raffle, where the probabilities and payouts change together.) Real lotteries solve this problem by buying insurance and things like that.

I originally followed the probabilities of the real Powerball for payouts, which means that you have about a 1/35 chance of winning a prize. I just pushed a change giving the ability to payout on fewer matched numbers, so that you can bring that number down if you like. If you give a small payout for even a single match, my back of the envelope calculations say people should have about a 50% chance of winning. Smiley

cool thanks!

Hopefully one of the dev's can check your code soon, so you can get the award.  I'll keep bugging them but I guess it is the weekend.  



No worries! Thanks for setting this all up!

I should say, if there's anything you don't like about the way I interpreted the spec, let me know. I'm happy to make any tweaks that are necessary. I want everyone on both sides to feel good about how this went. Smiley

ok thanks

i am going to sleep now, it took me way longer than i thought to drive on a1a from miami beach.

i'll bug people tomorrow about checking the code

worst case i will try to see how to run it myself on the test net - i guess i might as well try since this (ethereum contracts) is a major new feature of XCP

so here is the review of you code, there are a couple issues that need to get resolved.

https://gist.github.com/jorisbontje/353f69515a16cef7de7b

a snippet from the conclusion:
Code:
Then intend of the code is good, but in the implementation I have identified a couple flaws:

As stated under 6, the redemption deadline isn't fully implemented. This is problematic as it conflicts with the administrator being able to withdraw funds after the deadline.
Winning numbers can be redrawn multiple times after the lottery deadline, potentially overriding previous drawings. https://github.com/PeterBorah/ethereum-powerball/blob/master/contracts/lotto.se#L62-L81 As this can be triggered by anyone this is a serious concern. Suggested is to 'freeze' the lottery after the lottery deadline until the redemption deadline has expired as well.
Relying on block.prevhash is a security risk as this can be abused by miners / mining pools using a block withholding attack. If this is a real threat depends on the payout amount of the lotto. Since the RNG is configurable, I'd consider this to be currently good enough for the bounty.
Minor feedback for improvement:

use def init for automatic initialization upon contract creation
specify explicitly in requirements.txt which pyethereum / ethereum-serpent library are supported
create user interface ;)
sr. member
Activity: 432
Merit: 250
Can Counterparty adopt something like this - http://blog.coinprism.com/2014/09/10/proof-of-authenticity-of-cryptoassets/ - to verify the issuers of legit assets?

I brought this up on github, and one of the core devs already said they'll add it. It's not a big deal.
member
Activity: 118
Merit: 10
A difference which makes a difference
Can Counterparty adopt something like this - http://blog.coinprism.com/2014/09/10/proof-of-authenticity-of-cryptoassets/ - to verify the issuers of legit assets?
legendary
Activity: 1666
Merit: 1010
he who has the gold makes the rules
yes the prize amounts cannot be the same as powerball since it is unrealistic to use fixed pay outs unless this is being done by a large entity who already has the funds.  the payout as i mentioned above should ensure that at least 33% of the tickets get something.  does it do that?

You're going to need a big bankroll regardless, if you want to run any sort of lottery. That's because, by definition, if you're working with fixed probabilities there's no guarantee reality will follow exactly the expected distribution. What if only one person enters, and they win a prize? (The situation is different with a raffle, where the probabilities and payouts change together.) Real lotteries solve this problem by buying insurance and things like that.

I originally followed the probabilities of the real Powerball for payouts, which means that you have about a 1/35 chance of winning a prize. I just pushed a change giving the ability to payout on fewer matched numbers, so that you can bring that number down if you like. If you give a small payout for even a single match, my back of the envelope calculations say people should have about a 50% chance of winning. Smiley

cool thanks!

Hopefully one of the dev's can check your code soon, so you can get the award.  I'll keep bugging them but I guess it is the weekend.  



No worries! Thanks for setting this all up!

I should say, if there's anything you don't like about the way I interpreted the spec, let me know. I'm happy to make any tweaks that are necessary. I want everyone on both sides to feel good about how this went. Smiley

ok thanks

i am going to sleep now, it took me way longer than i thought to drive on a1a from miami beach.

i'll bug people tomorrow about checking the code

worst case i will try to see how to run it myself on the test net - i guess i might as well try since this (ethereum contracts) is a major new feature of XCP
newbie
Activity: 16
Merit: 0
Especially with the introduction of multisig, it would be a cool idea to build a relatively simple 'smart contract' kickstarter/reverse kickstarter on top of CounterParty, where community can collaboratively chip in funds to realise the development of smart contract dApps.

This is a really good idea, and luckily very easy to do. "Kickstarter"-style contracts have become a really common proof-of-concept in the Ethereum world. Here's one in Serpent:

https://github.com/ethereum/serpent/blob/poc7/examples/crowdfund.se

And one in the upcoming Solidity language:

https://github.com/chriseth/cpp-ethereum/wiki/Crowdfunding-example-contract-in-Solidity
sr. member
Activity: 617
Merit: 250
I really like the idea of having the community support the protocol/CP team with bounties for additional features. The lotto idea was great indeed.

hero member
Activity: 588
Merit: 504
I think it would be a good idea to create a specific section for Smart contracts on the CounterParty forums. At the moment most of the knowledge and community discusssion are to be found on Ethereum-centric boards.

The section can:
-Focus on general smart contract discussion
-cover an introduction to building & deploying a simple smart contract, with a 'hello world' test as well as links to useful resources for those playing with the technology
-Include a subsection for bidding on smart contract writing
-Include subsection for the showcase & trade of smart contracts/ smart contract lego-brick logic (whether it be snippets found online or new creations by freelancers)

I'd expect this ecosystem to broaden over time, and skilled Freelance smart contract writers to come into an increasing demand in future. Having CounterParty forums as one avenue they can congregate seems beneficial to both creators and consumers.

Especially with the introduction of multisig, it would be a cool idea to build a relatively simple 'smart contract' kickstarter/reverse kickstarter on top of CounterParty, where community can collaboratively chip in funds to realise the development of smart contract dApps.

Jump to: