Bitcoin Forum
May 27, 2024, 11:32:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: using bitcoin blockchain with an external service (sidechain?)  (Read 1672 times)
MithrilMan (OP)
Hero Member
*****
Offline Offline

Activity: 554
Merit: 502

Developer!


View Profile WWW
March 02, 2015, 10:15:06 AM
Last edit: March 02, 2015, 01:48:25 PM by MithrilMan
 #1

no one answered on developmet forum, so i try to ask here

Hi,
I'm sure this is possible but I'd like to have advices about where to look for informations.

Basically, I have a nice idea i want to implement about a game. I could implement it on as a stand alone cryptocurrency but i don't see the point of creating another altcoin so i would like to use bitcoin blockchain as a base to implement my logics.

Technically what i'd need is to store information linked to a bitcoin address and the bitcoin blocks would trigger some events in my game logic
the things to store could take several KB of data, i could even need to upload some images/sounds, so i can't store them right into the bitcoin blockchain, so i think i should need something like external assets linked to bitcoin transactions.

Now, i could easily implement a service that can be used to get/put assets but since it would be a proprietary server, there is the problem about the trust of information it holds, so what's the best practice for things like this?

without entering in the game detail, i have in mind the workflow i need.
the user should be able to do this:

1) store the (encrypted) information about his character (it's not really a character but for semplicity sake let call it this way) and be able to update it
2) subscribe to an event, sending a BTC amount to a specific address, plus a link to his subscribed character address
3) validate the subscribtion, sending the private key to decrypt his character
4) the external service will then execute the event, producing a result that would take a lot of space, so will be stored in the external server and a link to that result(asset?) need to be store in the bitcoin blockchain

users can use their own clients to verify that the produced result is right (the concept is like the transaction validations that bitcoin nodes does, this is why i said that i could implement an altcoin)

questions are:
- what's the best practice for things like this?
- how to grant that stored external asset doesn't change over time? (generate a CRC and put it on blockchain? any better ideas?)
- how to handle the payment in BTC without running a sort of exchanger? (i was thinking about using RETURN_OP as a way to link informations)
- would be nice to give to users the chance to store the same data stored in my server (sort of sidechain), is this possible actually?

thanks, feel free to ask if i didn't explained well



p.s.
it seems that sidechains proposal would fit well but it's just a proposal (http://www.coindesk.com/bitcoin-core-developers-bitcoin-side-chains/)

Huntercoin: Mithril Edition - Alternative client for Huntercoin - (Discontinued)
HUC: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE  - BTC: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC
rant to people who pretend things for free
MithrilMan (OP)
Hero Member
*****
Offline Offline

Activity: 554
Merit: 502

Developer!


View Profile WWW
March 03, 2015, 10:11:10 AM
 #2

where should i post to have some reply to this matter?

Huntercoin: Mithril Edition - Alternative client for Huntercoin - (Discontinued)
HUC: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE  - BTC: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC
rant to people who pretend things for free
ca333
Hero Member
*****
Offline Offline

Activity: 520
Merit: 522


Developer - EthicHacker - BTC enthusiast


View Profile
March 06, 2015, 06:42:18 PM
Last edit: March 07, 2015, 11:27:06 AM by ca333
 #3

no one answered on developmet forum, so i try to ask here

Hi,
I'm sure this is possible but I'd like to have advices about where to look for informations.

Basically, I have a nice idea i want to implement about a game. I could implement it on as a stand alone cryptocurrency but i don't see the point of creating another altcoin so i would like to use bitcoin blockchain as a base to implement my logics.

Technically what i'd need is to store information linked to a bitcoin address and the bitcoin blocks would trigger some events in my game logic
the things to store could take several KB of data, i could even need to upload some images/sounds, so i can't store them right into the bitcoin blockchain, so i think i should need something like external assets linked to bitcoin transactions.

Now, i could easily implement a service that can be used to get/put assets but since it would be a proprietary server, there is the problem about the trust of information it holds, so what's the best practice for things like this?

without entering in the game detail, i have in mind the workflow i need.
the user should be able to do this:

1) store the (encrypted) information about his character (it's not really a character but for semplicity sake let call it this way) and be able to update it
2) subscribe to an event, sending a BTC amount to a specific address, plus a link to his subscribed character address
3) validate the subscribtion, sending the private key to decrypt his character
4) the external service will then execute the event, producing a result that would take a lot of space, so will be stored in the external server and a link to that result(asset?) need to be store in the bitcoin blockchain

users can use their own clients to verify that the produced result is right (the concept is like the transaction validations that bitcoin nodes does, this is why i said that i could implement an altcoin)

questions are:
- what's the best practice for things like this?
- how to grant that stored external asset doesn't change over time? (generate a CRC and put it on blockchain? any better ideas?)
- how to handle the payment in BTC without running a sort of exchanger? (i was thinking about using RETURN_OP as a way to link informations)
- would be nice to give to users the chance to store the same data stored in my server (sort of sidechain), is this possible actually?

thanks, feel free to ask if i didn't explained well



p.s.
it seems that sidechains proposal would fit well but it's just a proposal (http://www.coindesk.com/bitcoin-core-developers-bitcoin-side-chains/)

i would create secondary blockchain which is same specs of BTC-chain and then linked to your client, we call now "M[ithril]M[an]CLIENT".
then its very easy when somebody own privkey he can use to sign also data-transfer and broadcast informations to this "sidechain" thourg "MMCLIENT". and in MMCLIENT network you can see with which BTCkey it s linked/signed so its connected to btc-chain (for owner verification....). but please remember not to allow transfer of images and multimedial data. chain-technology must save information on other clients. it s "everywhere". and when it s too big then you have problem. because somebody also will try to manipulate or say better destroy your project when ability is here (data-spam or flood). and unless it s not centralized technic (giving developer ability to ban keys) you can not do something again it. saving a reference or shortcode of the information is no problem like url added as tx-note in chain or with OP_return tx which is in my opinion best option because its lightweighter for the blockchain then other methods of putting information into blockchain.

i hope this helps you for decision.

when you need help for programming ask me i work on subchain-solution for other coin since 5 month i know how make.
i can help you free.




this space is available (free) for humanitarian nonprofit organizations - please contact me
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!