Bitcoin Forum
April 26, 2024, 02:07:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »  All
  Print  
Author Topic: [ANN][CHIPS] KMD platform's LN app with realtime betting+decentralized shuffling  (Read 44543 times)
jl777B (OP)
Full Member
***
Offline Offline

Activity: 476
Merit: 133


View Profile
August 10, 2017, 03:58:04 PM
Last edit: June 11, 2018, 03:14:10 PM by jl777B
 #1



I needed a way to implement gaming chips and using lightning network seems a very interesting solution. However, LN is assuming the latest BTC, so I had to fork bitcoin 0.14 to get a testable environment.

SHA256, 10 second blocks, rpc port 57776
        pchMessageStart[0] = 0xff;
        pchMessageStart[1] = 0xee;
        pchMessageStart[2] = 0xdd;
        pchMessageStart[3] = 0xcc;
        nDefaultPort = 57777;

https://github.com/jl777/chips3 <- fork of BTC 0.14
build instructions: https://bitcointalk.org/index.php?topic=2078449.msg20793493#msg20793493

https://github.com/jl777/lightning <- fork of Elements lightning C daemon
build instructions: cd lightning; make; cd privatebet; ./m_bet

Please refer to the docs for the original projects, I made as little changes to them as possible.

I am not sure if this blockchain will become the "real" CHIPS, but I would tend to guess that it would. Privatebet (BET komodo assetchain) is implementing a generic decentralized gaming platform and will be using CHIPS for the internal ledger of the in-game betting results. However, specific plans are subject to change until it is all finalized.

Since the casino games will have a relatively short lifetime, as long as the market price of CHIPS does not change very quickly, people can purchase CHIPS to use inside the games and them redeem them via barterDEX at close to the same price. Maybe even some time limited pricelocking can be implemented with CLTV.

This is really more of an internal component for the komodo ecosystem, but I announce in here so that it cannot be claimed that it was done in secret. Of course it is all in my github and fully public even during the development phase.

Oh, there wont be any ICO for CHIPS. Not looking for any funding, we have plenty of that. However, if you want to actively participate in the development or testing, then certainly we need as many people for that as possible.

I have a node running at: 5.9.253.195
once you get it built using normal bitcoin build procedure: ./chipsd -addnode=5.9.253.195 &

The lightning is started by ~/lightning/lightningd/lightningd &

###################
Blockexplorers:
http://chips1.explorer.supernet.org
 http://www.zpool.ca/explorer/2447
 http://explorer.chips.cash/
 http://149.202.49.218:3001/

Unix, OSX and Windows QT wallet binaries: https://github.com/DeckerSU/chips3/releases/tag/v0.14.99_decker_2

Mining Pools:
 xrobesx is running a pool at dabmining.co:8080
 crackfoo has added it to zpool: https://bitcointalk.org/index.php?topic=2078449.msg21200675#msg21200675
 pondsea's private pool http://69.30.231.42:8080/
http://144.76.167.66:8080/
http://miningpools.cloud and find CHIPS pool or directly with stratum server http://chipspool.cloud  (http://miningpools.cloud/?pool=chips#/)
https://pool.coin-miners.info https://bitcointalk.org/index.php?topic=2078449.msg22338299#msg22338299

Exchange: barterDEX
https://www.coinexchange.io/market/CHIPS/BTC

CHIP and a Chair - Let’s use Bitcoin’s Lightning Network to create a Poker Game


CHIPS now has a Discord. Come join us! https://discord.gg/UyVvdV4
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
NASdaq
Sr. Member
****
Offline Offline

Activity: 301
Merit: 250


View Profile
August 10, 2017, 07:10:31 PM
 #2

I needed a way to implement gaming chips and using lightning network seems a very interesting solution. However, LN is assuming the latest BTC, so I had to fork bitcoin 0.14 to get a testable environment.

https://github.com/jl777/chips3 <- fork of BTC 0.14
https://github.com/jl777/chipsln <- fork of Elements lightning C daemon

Please refer to the docs for the original projects, I made as little changes to them as possible.

I am not sure if this blockchain will become the "real" CHIPS, but I would tend to guess that it would. Privatebet (BET komodo assetchain) is implementing a generic decentralized gaming platform and will be using CHIPS for the internal ledger of the in-game betting results. However, specific plans are subject to change until it is all finalized.

Since the casino games will have a relatively short lifetime, as long as the market price of CHIPS does not change very quickly, people can purchase CHIPS to use inside the games and them redeem them via barterDEX at close to the same price. Maybe even some time limited pricelocking can be implemented with CLTV.

This is really more of an internal component for the komodo ecosystem, but I announce in here so that it cannot be claimed that it was done in secret. Of course it is all in my github and fully public even during the development phase.

Oh, there wont be any ICO for CHIPS. Not looking for any funding, we have plenty of that. However, if you want to actively participate in the development or testing, then certainly we need as many people for that as possible.

I have a node running at: 5.9.253.195
once you get it built using normal bitcoin build procedure: ./chipsd -addnode=5.9.253.195


Looks interesting, great use of LN tech, glad I have some Pangea stashed away!
markj113
Legendary
*
Offline Offline

Activity: 2254
Merit: 1043



View Profile
August 10, 2017, 07:42:15 PM
 #3

Really interesting.

No idea how you manage to keep all these development threads running simultaneously Smiley
jl777B (OP)
Full Member
***
Offline Offline

Activity: 476
Merit: 133


View Profile
August 11, 2017, 08:28:50 AM
 #4

Really interesting.

No idea how you manage to keep all these development threads running simultaneously Smiley

It helps that it is a single system https://bitcointalk.org/index.php?topic=1605144.msg20787389#msg20787389

also I avoid doing GUI
jl777B (OP)
Full Member
***
Offline Offline

Activity: 476
Merit: 133


View Profile
August 11, 2017, 01:29:07 PM
Last edit: May 11, 2018, 02:16:39 PM by jl777B
 #5

building it properly is a pain (as usual). here are the steps I used to get a stable build:

sudo apt-get install software-properties-common autoconf git build-essential libtool libprotobuf-c-dev libgmp-dev libsqlite3-dev python python3 zip jq libevent-dev pkg-config libssl-dev libcurl4-gnutls-dev cmake
add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev

cd
wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.zip
unzip boost_1_64_0.zip
cd boost_1_64_0
./bootstrap.sh
./b2
./b2 install

cd
git clone https://github.com/jl777/chips3
cd ~/chips3
./autogen.sh
./configure --with-boost=/usr/local/
cd src
make -j8 chipsd
make chips-cli
cp chips-cli /usr/bin # just need to get chips-cli to work from command line
# make -> will build everything, including QT wallet
sudo ldconfig /usr/local/lib # thanks smaragda!
./chipsd -addnode=5.9.253.195 &

cd
git clone https://github.com/jl777/lightning
cd lightning
make
daemon/lightning-cli stop; lightningd/lightningd --log-level=debug &
cd privatebet
./m_bet
./client or ./host

Please post here if you get a node up and running. I am actively enhancing it so we can get some realtime transactions between nodes soon. I plan to have 10 live nodes today


######
seems bitcoin ppa doesnt have bdb 4.8 anymore. here are manual compile instructions:
ou could compile it from source as well.
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix/
../dist/configure --enable-cxx
make
make install

Tell your system where to find db4.8
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"
ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so /usr/lib/libdb-4.8.so
jl777B (OP)
Full Member
***
Offline Offline

Activity: 476
Merit: 133


View Profile
August 12, 2017, 12:22:17 PM
 #6

The LN code is still pretty low level, but I finally manage to get a micropayment across!

cli sendpay '[{ "id" : "02779b57b66706778aa1c7308a817dc080295f3c2a6af349bb1114b8be328c28dc", "channel" : "2646:1:0", "msatoshi" : 1000, "delay" : 10 } ]' a7a29267cb1b2502773152d3eb20b4985989afadf586eac21c0c3e2ec24a4b8bestimatefee.(-1
) -> default to 0.00010000
lightningd(17765): Unable to estimate fee, default to 0.00020000

lightningd(17765): Connected json input
lightningd(17765): Sending 1000 over 1 hops to deliver 1000
lightningd_channel(17953): REPLY WIRE_CHANNEL_OFFER_HTLC_REPLY with 0 fds
lightningd_channel(17953): UPDATE WIRE_CHANNEL_SENDING_COMMITSIG
lightningd_channel(17953): UPDATE WIRE_CHANNEL_GOT_REVOKE
lightningd_channel(17953): UPDATE WIRE_CHANNEL_GOT_COMMITSIG
lightningd_channel(17953): UPDATE WIRE_CHANNEL_GOT_COMMITSIG
{ "preimage" : "c1d017f084e2c0afc9b24387836ecaef88a35fe86bf43cc353b5ef3732b3a7c6" }

at least I think I did. Not easy to see balances yet

A lot of what LN is doing is similar to barterDEX and it certainly isnt simple to do.
jl777B (OP)
Full Member
***
Offline Offline

Activity: 476
Merit: 133


View Profile
August 12, 2017, 02:27:02 PM
 #7

After posting various questions and issues with LN it seems that multisig wont be available for quite a while as it will require a spec change before it can even be implemented. in my experience 6 months for that would be extremely fast.

So, I need to have a different method to deal with table bets.

Here is what I propose:

1. Each table has a "dealer" who is the responsible node for managing CHIPS. Externally, each dealer would have posted a performance bond of up to XXX KMD with some arbiter.

2. Each player that joins a table would have their independent amount of CHIPS, but they open a payment channel to the dealer.

2b. the dealer opens a payment channel to each player as they join, which means the dealer needs to have at least N times the average number of CHIPS for each player's channel.

3. For each hand, the LN payments are made to the dealer. At the end of each hand, the dealer pays out to the winner player(s)

In the even the dealer does not make the required payment, the arbiter would be contacted and the validated amount would be distributed from the performance bond.

There is some risk of a dealer using the same performance bond for many games and waiting until there is more than his performance bond in his hands... So, reputation of dealer will need to be a factor in how much people would feel safe in betting per game.

For the early stages, this wont be an issue and eventually we should be able to have a multisig (or blockchain) controlled LN account
castiloros
Sr. Member
****
Offline Offline

Activity: 770
Merit: 250


View Profile
August 12, 2017, 02:36:55 PM
 #8

So there is NO ICO for this project, that will means there is no bounties open right now and the future.
Just hoping that the project will have a good success in the near future.
yadan86
Hero Member
*****
Offline Offline

Activity: 598
Merit: 500



View Profile
August 12, 2017, 02:38:33 PM
 #9

When will you release ? Keep on your hard work, I'll be  back for more information soon.
jl777B (OP)
Full Member
***
Offline Offline

Activity: 476
Merit: 133


View Profile
August 12, 2017, 02:46:00 PM
 #10

So there is NO ICO for this project, that will means there is no bounties open right now and the future.
Just hoping that the project will have a good success in the near future.
The project has enough funding, but for now we are just looking for GUI devs
jl777B (OP)
Full Member
***
Offline Offline

Activity: 476
Merit: 133


View Profile
August 12, 2017, 02:48:54 PM
 #11

When will you release ? Keep on your hard work, I'll be  back for more information soon.
Until there is a GUI, any release will have limited value.
The LN needs to get to beta stage first though, there are some important things like state persistence that it needs before it can be used with real money.

However, since it is just using CHIPS, maybe we can ignore such issues. I just figured out what needs to be done to manage the LN side of things and once that layer is in place, the privatebet code needs to integrate it in.

with so many different things that can interrupt me, I am reluctant to make any time estimates. only that this is currently my default project when there arent bugs to fix for barterDEX
hugasinora
Full Member
***
Offline Offline

Activity: 420
Merit: 100



View Profile
August 12, 2017, 04:08:31 PM
 #12

If you are not too quick to make an announcement, I think this project is not quite ready to make an announcement, I will see the progress of this thread the next few days, I hope you make this project more convincing, good luck team
TheKingInYellow
Sr. Member
****
Offline Offline

Activity: 546
Merit: 257


Have you found the Yellow Sign?


View Profile
August 12, 2017, 04:16:25 PM
 #13

How will the coin be distributed?

DAPS Project, anonymizing assets for the world. Controlling your financial sovereignty is your right, join now!
DAPS (Decentralized - Anonymous - Payment - System)
Zero-Knowledge Proofs - Revolutionary Proof-Of-Audit algo - Masternodes - PoSv3 - Worldwide community
adarwis
Sr. Member
****
Offline Offline

Activity: 560
Merit: 251



View Profile
August 12, 2017, 04:34:25 PM
 #14

This is a great start, meaning you believe this project will be successful, all the great things in this world happen because of trust. High confidence keeps you from giving up a single second. Although it fails, that trust will raise you up again. Hopefully run well and good luck.
Thenoticer
Sr. Member
****
Offline Offline

Activity: 332
Merit: 250


View Profile
August 12, 2017, 05:48:59 PM
 #15

This is very interesting.

Had you considered an alternative to LN? I seem to remember that geist geld, a sha256 clone, with merge mining, being lightning fast(created to push the speed boundary)  and might be easier to add multi sig if it doesn't have it already.

Also will chips have a 21 mil limit and be able to be mined?

jl777B (OP)
Full Member
***
Offline Offline

Activity: 476
Merit: 133


View Profile
August 12, 2017, 05:59:07 PM
 #16

...
make chipsd
make chips-cli
# make -> will build everything, including QT wallet
sudo ldconfig /usr/local/lib
./chipsd -addnode=5.9.253.195 &
cp ~/chips3/src/chips-cli /usr/bin
...

Please don't ask me to explain what problem arises (i.e. I'm clueless), but you should add the above green to your instructions exactly where I placed it.  Some will not be able to run chipsd without this step.


 Smiley


indeed an important step. I forgot I had to do that on some nodes. updated my post above
jl777B (OP)
Full Member
***
Offline Offline

Activity: 476
Merit: 133


View Profile
August 12, 2017, 06:01:12 PM
 #17

If you are not too quick to make an announcement, I think this project is not quite ready to make an announcement, I will see the progress of this thread the next few days, I hope you make this project more convincing, good luck team
Too early to not ask for any funds?

There wont be an ICO.

I only announced it so it is publicly announced and that people cant complain later about some sort of stealth mining.

I am probably one of the few currently mining CHIPS, but anybody is welcome to. It works, so it is not too early to announce that it exists.

There could well be several hardforks that will need to be made, but hopefully not.
jl777B (OP)
Full Member
***
Offline Offline

Activity: 476
Merit: 133


View Profile
August 12, 2017, 06:02:32 PM
 #18

How will the coin be distributed?
Identical to bitcoin. pure SHA256 mining. As few changes to the current bitcoin 0.14 as possible.
jl777B (OP)
Full Member
***
Offline Offline

Activity: 476
Merit: 133


View Profile
August 12, 2017, 06:05:09 PM
Last edit: August 16, 2017, 09:54:34 AM by jl777B
 #19

This is very interesting.

Had you considered an alternative to LN? I seem to remember that geist geld, a sha256 clone, with merge mining, being lightning fast(created to push the speed boundary)  and might be easier to add multi sig if it doesn't have it already.

Also will chips have a 21 mil limit and be able to be mined?


CHIPS has a 10 second blocktime (if we can get enough miners), currently about 30 seconds per block.

And from what I can tell LN is working and will have a fairly large infrastructure of GUI, etc. so I prefer to stick with industry standard.

CHIPS has multisig, its just that LN itself is a protocol that assumes single party ownership of addresses. I have make a request to the lightning-rfc issues https://github.com/lightningnetwork/lightning-rfc/issues

hopefully in the future there will be a built in solution for this. in the meantime, I will make an addon layer to provide this functionality
jl777B (OP)
Full Member
***
Offline Offline

Activity: 476
Merit: 133


View Profile
August 12, 2017, 06:07:26 PM
 #20

If you are not too quick to make an announcement, I think this project is not quite ready to make an announcement, I will see the progress of this thread the next few days, I hope you make this project more convincing, good luck team
Also there wont be any fancy charts or marketing materials, or any marketing in general. This is a technical thread about a technical coin providing a technical service to the komodo ecosystem

whether CHIPS will have any market value, I cannot say. It will be able to be traded on barterDEX using the decentralized atomic swaps
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »  All
  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!