Bitcoin Forum
June 28, 2024, 08:11:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Handling user funds  (Read 592 times)
GameKyuubi (OP)
Sr. Member
****
Offline Offline

Activity: 253
Merit: 1413


DTCxNMC


View Profile
May 17, 2015, 09:34:44 AM
 #1

Sorry if this is the wrong subforum, I'm not quite sure which this belongs in.  Suppose I want to make a service that allows users to spend a crypto from their phones on a service that I provide.  The service uses user data sent from their phone (pictures, text, etc).  This crypto does not have a lightwallet, implementing one is impossible, and the full wallet is too heavy for an android device to reasonably handle.  Is my only option to implement a server-side wallet service?  If so, what are the best practices for handling client funds?  I'm thinking that I'd need to implement a server-side database with a record of funds owned by each account, and then distribute/use funds from the server wallet accordingly?

Any advice appreciated.

BTC: 15SLrNo6PKVfsH5JLtatJcVkSQXCk1LXyq
full stack Node
GameKyuubi (OP)
Sr. Member
****
Offline Offline

Activity: 253
Merit: 1413


DTCxNMC


View Profile
May 21, 2015, 12:28:19 AM
 #2

Nobody knows?  Really?   Huh

BTC: 15SLrNo6PKVfsH5JLtatJcVkSQXCk1LXyq
full stack Node
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
May 21, 2015, 04:40:39 PM
 #3

Sorry if this is the wrong subforum, I'm not quite sure which this belongs in.  Suppose I want to make a service that allows users to spend a crypto from their phones on a service that I provide.  The service uses user data sent from their phone (pictures, text, etc).

Can you please be more specific on how this service works? I didn't understand you correctly. I might be able to make my answer better if you can give more details.

This crypto does not have a lightwallet, implementing one is impossible,

Why is it "impossible"?

and the full wallet is too heavy for an android device to reasonably handle.

Right.

Is my only option to implement a server-side wallet service?

I don't know why implementing an SPV client is impossible. If that is true, then online wallet is your best choice if you know what you are doing. Else, I suggest you to create a block explorer and allow API requests. Then, you can create a simple app which uses this API. You can do that in four steps:

 • Fetch unspent.
 • Create raw transaction.
 • Sign raw transaction.
 • Push signed raw transaction.

If so, what are the best practices for handling client funds?  I'm thinking that I'd need to implement a server-side database with a record of funds owned by each account, and then distribute/use funds from the server wallet accordingly?

Any advice appreciated.

A ledger is important if you are creating an online wallet. You should backup this ledger and all private keys or wallet.dat either twice every 24 hours or when users create x addresses.

I highly recommend you not to keep everything in the hot wallet unless your security is good enough. I would also suggest to enable off-chain transactions but remember, this will make your part more complex.

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!