Bitcoin Forum
April 25, 2024, 04:25:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: QR code scanner help and question.  (Read 932 times)
DigitalPirateman (OP)
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
September 07, 2014, 08:40:13 PM
 #1

Okay I have a project i been working on i am holding the coin value on to printed qr codes kinda like a paper wallet but once the user scans the code on like a android wallet they get the coin. I am developing this project for my own altcoin but this questions is a valid question for any qr code project I just need to know how to hold the value of the coin onto the QR code. I am asking in this format because I don't want to give away to much detail on the marketing project I just need to know how to get the value on the code for pre receiving

Thanks in advance.
1714062327
Hero Member
*
Offline Offline

Posts: 1714062327

View Profile Personal Message (Offline)

Ignore
1714062327
Reply with quote  #2

1714062327
Report to moderator
1714062327
Hero Member
*
Offline Offline

Posts: 1714062327

View Profile Personal Message (Offline)

Ignore
1714062327
Reply with quote  #2

1714062327
Report to moderator
1714062327
Hero Member
*
Offline Offline

Posts: 1714062327

View Profile Personal Message (Offline)

Ignore
1714062327
Reply with quote  #2

1714062327
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714062327
Hero Member
*
Offline Offline

Posts: 1714062327

View Profile Personal Message (Offline)

Ignore
1714062327
Reply with quote  #2

1714062327
Report to moderator
cloverme
Legendary
*
Offline Offline

Activity: 1512
Merit: 1054


SpacePirate.io


View Profile WWW
September 08, 2014, 03:57:03 AM
 #2

It sounds like you want to display the private key in the QR code, then write the code to import it.

https://en.bitcoin.it/wiki/How_to_import_private_keys



DigitalPirateman (OP)
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
September 08, 2014, 06:35:08 AM
 #3

That might work but my issue is how would I do that for my coin we are currently getting a block explorer for our coin the best way I thought to really help the coin go well was to basically put the qr code on something with our coin logo and by that time I hope to have the mobile wallets running like via android phone. And when they ask what the f is a (ourcoin) and we say well its like bitcoin but its it own coin. And if they are still confused well that's when we show them how it work. I would say detail to detail on my plans but I still need to prefect it myself. I hope to spread the news of my coin and bitcoin together.
cloverme
Legendary
*
Offline Offline

Activity: 1512
Merit: 1054


SpacePirate.io


View Profile WWW
September 08, 2014, 02:56:45 PM
 #4

You have to use the QR code to represent what you want it to for your coin on your own blockchain... so public key would be for balance and transaction history, private key to send the value.

Here's an example of how it's implemented at blockchain with paper QR codes:
https://blockchain.info/wallet/paper-tutorial

Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1000


https://gliph.me/hUF


View Profile
September 09, 2014, 02:09:10 PM
 #5

[...] I just need to know how to hold the value of the coin onto the QR code. [...]
Not quite sure what you are looking for, but QR codes with values (amounts) look like this for bitcoin:
Code:
bitcoin:1NeWArjoPgAXeZxXo9U699mqgqQ6sLdYFB?amount=1

OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
Miitch
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
September 09, 2014, 02:40:09 PM
 #6

once the user scans the code on like a android wallet they get the coin
This is functionality you need to write into your program. QR codes are just stores for text data. If you write a specification for data storage then your app can sort it out when it scans it in. Maybe separate the relevant fields with a pipe | symbol or a comma? Then when you import it you can explode it into an array and work with it from there. The first variable could be the address, the second variable the amount, etc etc. I would be hesitant to hard code the amount into the QR code though because theoretically couldn't the amount increase/decrease as that address is used actively on the network? Accepting the QR code data as 'fact' would open your alt coin up to very VERY VERY easy scamming!

▇ ▇ ▇ ▇ ▇ ▇ ▇ ▇ ▇   COIN-SWEEPER
▇ ▇ ▇ ▇ ▇ ▇ ▇ ▇    Avoid Bombs Win BIG
▇ ▇ ▇ ▇ ▇ ▇ ▇ ▇   1% House Edge   ▇ ▇ ▇ ▇ ▇ ▇ ▇
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!