Bitcoin Forum
September 23, 2017, 03:58:49 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 »  All
  Print  
Author Topic: Bitaddress Bill Sized PDF  (Read 4657 times)
osmosis
Sr. Member
****
Offline Offline

Activity: 301



View Profile
December 20, 2011, 12:00:37 PM
 #1

This is a new thread for a conversation that started in the bitaddress thread:
https://bitcointalk.org/index.php?topic=43496.msg655808#msg655808

Bitaddress Bill Sized PDF

Goal: To generate printable PDF images of bill sized bitcoin wallet addresses. Allow for the easy creation of paper wallets which are dollar bill sized so they can fit in wallets, and are visually appealing as well as can be printed on durable paper. A good approach would be to expand on the existing PDF generation code in bitaddress to redraw the print outs to be bill sized. This approach would have the added benefit of being able to be pushed upstream back into the bitaddress code base. BitAddress has been entirely open-sourced.

Usage:
Private key would be exposed. For hand to hand exchanged between trusted parties.
If for use between parties with lack of trust, amount can be withdrawn from the paper using a mobile phone in realtime...like an instant check deposit, and the paper bill can be discarded.

Ideas/Specifications:
Print outs will come in the same size as US dollar bills, or about 6.5cm by 15.5cm. (Could also consider paper currency sizes for other countries.)
Design layout does not in any way need to resemble US bills. Just the same size is needed so that they fit in wallets.
Some basic usage instructions should be included in the layout, or a url for info.
Something cool looking enough that I could get my friend to accept them.
Two-part printout. Have one segment for an "invoices" with the Public Key only, and a second bill with both the Public Key and the Private Keys.  
Printed in different denominations for use as private currency. (For a customer loyalty programs, redeemable only with the merchant that issues them)

Text:
This note allows you to access stored money.
If private key may have been disclosed, you should retrieve the money immediately.
Anyone who has had to this note may retrieve the money first.
To learn more about bitcoins go to: weusecoins.org or lovebitcoins.org
Bitcoin Address: 1xxxx Use this address to send more money to this address.
Private Key: 5xxxx Import this key to retrieve the stored money.
Best printed on paper that's cotton based 50% or better and acid free.
Use in conjunction with bitcoinnotify.com  ( sponsor? )

Resources:
bitaddress.org
printcoins.com
http://bitbills.com/
https://github.com/pointbiz/bitaddress.org
https://bitcointalk.org/index.php?topic=43496 (bitaddress discussion)
https://bitcointalk.org/index.php?topic=43496.msg538311#msg538311 (sgornick paper PoS)
For international cash paper sizes: http://www.dirjournal.com/info/cool-money-collection-from-around-the-world/
http://www.youtube.com/watch?feature=player_detailpage&v=_L0O5uWsgXU#t=380s  (about paper types of currencies)
http://www.amazon.com/Rite-Rain-Weather-Copier-Paper/dp/B0016H1RYE
http://www.amazon.com/Thermanent-Digital-Polyester-2x11-5mil/dp/B0042F6HFQ
1506139129
Hero Member
*
Offline Offline

Posts: 1506139129

View Profile Personal Message (Offline)

Ignore
1506139129
Reply with quote  #2

1506139129
Report to moderator
1506139129
Hero Member
*
Offline Offline

Posts: 1506139129

View Profile Personal Message (Offline)

Ignore
1506139129
Reply with quote  #2

1506139129
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1506139129
Hero Member
*
Offline Offline

Posts: 1506139129

View Profile Personal Message (Offline)

Ignore
1506139129
Reply with quote  #2

1506139129
Report to moderator
osmosis
Sr. Member
****
Offline Offline

Activity: 301



View Profile
December 20, 2011, 12:02:00 PM
 #2

.
BurtW
Legendary
*
Offline Offline

Activity: 2030

All paid signature campaigns should be banned.


View Profile WWW
December 20, 2011, 12:42:19 PM
 #3

Interested.

Our family was terrorized by Homeland Security.  Read all about it here:  http://www.jmwagner.com/ and http://www.burtw.com/  Any donations to help us recover from the $300,000 in legal fees and forced donations to the Federal Asset Forfeiture slush fund are greatly appreciated!
btc_artist
Full Member
***
Offline Offline

Activity: 154


Bitcoin!


View Profile WWW
December 20, 2011, 05:34:47 PM
 #4

Watching

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
btc_artist
Full Member
***
Offline Offline

Activity: 154


Bitcoin!


View Profile WWW
December 20, 2011, 06:01:23 PM
 #5

No reason it has to be a PDF for printing it.  A PNG image would work just as well.

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
echowhiskey
Newbie
*
Offline Offline

Activity: 21


View Profile
December 20, 2011, 07:03:15 PM
 #6

No reason it has to be a PDF for printing it.  A PNG image would work just as well.

If I understand correctly, the benefit is that a pdf can execute code that will generate addresses when the pdf is drawn; but I may be mistaken.

It would be nice if it simply format the QR-codes of keypairs (as many as will fit on an 8.5"x11" piece of paper.)  Cut out a few pairs of QR-codes and use them as you would the wallet on your computer.  If you send money to someone (give them a QR-code pair with funds) have them send the change back to a new address (one of your unused QR-code pairs.)  When a keypair is used - rip it in half.
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1358


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
December 20, 2011, 07:15:09 PM
 #7

No reason it has to be a PDF for printing it.  A PNG image would work just as well.

I don't think a PNG image can encapsulate vector elements or fonts.  A PNG would have to be a very high resolution image to look good printed.  A PDF would not.

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper or hardware wallets instead.
PrintCoins
Hero Member
*****
Offline Offline

Activity: 535


View Profile
December 20, 2011, 08:36:27 PM
 #8

The printcoin.com bills and cheques come from a dynamically created pdf file. I was considering opening it up for others to print from via the web, and also with downloaded code that they could execute locally.

osmosis
Sr. Member
****
Offline Offline

Activity: 301



View Profile
December 20, 2011, 11:10:56 PM
 #9

The printcoin.com bills and cheques come from a dynamically created pdf file. I was considering opening it up for others to print from via the web, and also with downloaded code that they could execute locally.

That hits pretty close to the target on what we are desiring to create. How similar is your code base to bitaddress? What tools / libraries are used?
pointbiz
Sr. Member
****
Offline Offline

Activity: 429

1ninja


View Profile
December 21, 2011, 02:14:36 AM
 #10

Is the goal printing a bill or having a PDF?
Is PDF preferred to HTML because it will print more accurately?

I didn't realize it was even possible to generate a PDF from JavaScript but it seems you can redirect the user to a base64 encoded PDF via a data URI in modern browsers.

Modifying the PaperWallet to print something that looks more like a check or invoice is easy, outputting that in PDF is hard.

Look for "var walletHtml" in the JavaScript and modify it with the HTML elements you need to make it look like a check. Then update the CSS.

Coder of: https://www.bitaddress.org      Thread
Open Source JavaScript Client-Side Bitcoin Wallet Generator
Donations: 1NiNja1bUmhSoTXozBRBEtR8LeF9TGbZBN   PGP
phillipsjk
Legendary
*
Offline Offline

Activity: 1008

Let the chips fall where they may.


View Profile WWW
December 21, 2011, 06:10:19 AM
 #11


If I understand correctly, the benefit is that a pdf can execute code that will generate addresses when the pdf is drawn; but I may be mistaken.


PostScript, on which PDF is based, is Turing-complete. I think PDF was specifically designed not to have the capability.

However, once the PDF format became popular (because it acted like paper), Adobe decided to screw it up. At about version 6 of the Acrobat reader (not sure which PDF version), JavaScript support was added, adding back turing completeness. Adobe also added DRM features, making PDF files act decidedly unlike paper by betraying the user (refusing to open, print, or edit).

Even with a turing-complete language, I would not trust the quality of any random number generator running inside the printer.

James' OpenPGP public key fingerprint: EB14 9E5B F80C 1F2D 3EBE  0A2F B3DE 81FF 7B9D 5160
osmosis
Sr. Member
****
Offline Offline

Activity: 301



View Profile
December 21, 2011, 09:08:22 PM
 #12


>First tip there is no existing PDF generation code at bitaddress.org

I see. Bitaddress.org is using a javascript windows.print() function, which with Chrome brings up a nice PDF output option. In firefox, there is no mention of PDF or preview display for the printer output. Given the friendly print display that chrome uses, and the existing functionality of bitaddress, modifying CSS/HTML looks like an tenable option.
osmosis
Sr. Member
****
Offline Offline

Activity: 301



View Profile
December 21, 2011, 09:28:12 PM
 #13

I'm having a hard time determining if your proposal is about:

1) Paper wallet that fits in your physical wallet
2) Paper wallet that looks like a negotiable instrument (check, note, currency, etc) that fits in your physical wallet
3) An invoice or paper point-of-sale system
4) Generating PDF wallets


Thanks for the question. Mostly yes.

1) Indeed it is a paper wallet that fits in a physical wallet. Though I can get the current bitaddress tear offs in my wallet, they end up being scrunched up pieces of paper because they don't stack nicely with the rest of my dollar bills or personal cheques. So they should be the same dimensions as a dollar.
2) The idea is not to try and imitate or confuse btc paper bills with conventional money or checks, but rather to make them functional and attractive. This may be the way that some people are introduced to bitcoins for the first time, or possibly the first time they ever receive an item signifying bitcoins that they can hold in their hand. We should want their response to be "Cool!" We may come up with one good design, or possibly multiple designs for the user to select from. I want a slick and attractive graphical design. For usability, we should include simple instructions or a link to instructions on how to use and basic information about bitcoin..
3) It has been proposed that a tear off receipt on the side, or a companion receipt could be included and may be useful to some. These are already found in standard business cheque books. This could include a field for inscribing notes about the transaction, as well as show the public key. This would be additional functionality, or possibly a separate layout option.
4) PDF is good. HTML/CSS is still an option as well.

osmosis
Sr. Member
****
Offline Offline

Activity: 301



View Profile
December 21, 2011, 09:36:35 PM
 #14

Note, there are already "label making" programs around that can take a list of data values and merge to produce PDF output bulk coupons. A tool like that may satisfy some users already with no programming needed.

Usually you can create a fancy layout and then pump it with data to generate bulk output. I did this for a batch of ISBN barcodes once. (I used glabels, in linux, which supports various barcodes and can produce any sized repetitive printed blocks. It uses libzint so can insert QR codes from given data.)

That would be one route to accomplish it, though it would require the user to have the label making software for their particular platform, and then require the additional step for the user of having to import bulk key list. Probably not the best of our options at this time.

It is important that we make these as extremely easy to create so that they can be widely used.





osmosis
Sr. Member
****
Offline Offline

Activity: 301



View Profile
December 21, 2011, 09:36:57 PM
 #15


The only way I know of right know from the users perspective to redeem a bitcoin private key is through the mtgox.
PrintCoins
Hero Member
*****
Offline Offline

Activity: 535


View Profile
December 21, 2011, 10:14:42 PM
 #16

Strongcoin also allows for import, as well as pywallet.

I keep instructions here:
http://printcoins.com/redeem

It is what I print on my bills.

BurtW
Legendary
*
Offline Offline

Activity: 2030

All paid signature campaigns should be banned.


View Profile WWW
December 21, 2011, 10:44:36 PM
 #17

I have asked this question before:  Currently I know of only three ways to redeem private keys (Mt Gox, StrongCoin and PyWallet).  Does anyone know of any other ways to do this?  It seems like some of the other exchanges and on line wallet systems would have added this feature by now.

 Huh

Our family was terrorized by Homeland Security.  Read all about it here:  http://www.jmwagner.com/ and http://www.burtw.com/  Any donations to help us recover from the $300,000 in legal fees and forced donations to the Federal Asset Forfeiture slush fund are greatly appreciated!
osmosis
Sr. Member
****
Offline Offline

Activity: 301



View Profile
December 21, 2011, 10:55:44 PM
 #18

I have asked this question before:  Currently I know of only three ways to redeem private keys (Mt Gox, StrongCoin and PyWallet).  Does anyone know of any other ways to do this?  It seems like some of the other exchanges and on line wallet systems would have added this feature by now.

 Huh

re: redeem private keys
from http://printcoins.com/redeem
"A future version of the bitcoin client will likely have import key functionality native to it. This pull request implements it..
https://github.com/bitcoin/bitcoin/pull/220
"
mcorlett
Donator
Sr. Member
*
Offline Offline

Activity: 308



View Profile
December 21, 2011, 10:57:39 PM
 #19

I have asked this question before:  Currently I know of only three ways to redeem private keys (Mt Gox, StrongCoin and PyWallet).  Does anyone know of any other ways to do this?  It seems like some of the other exchanges and on line wallet systems would have added this feature by now.

 Huh
Blockchain.info's Wallet also has this functionality, and it accepts the private keys in basically every format known to man.

mila
Sr. Member
****
Offline Offline

Activity: 462



View Profile
December 22, 2011, 11:32:34 PM
 #20

I use apache fop for creating pdf files
it uses a stylesheet (set of rules how to organize information on the print / pdf - layout rules) - here bar.xslt
 and data (key, address pairs, optional paths to qr images) in an xml file - here foo.xml

In this example running this command:
 ./fop -xml data/foo.xml -xsl data/bar.xslt -pdf data/1.pdf -dpi 600

as you may guess inside the working directory with my fop.jar I have directory data with the stylesheet and data xml and where my output pdf appears. the options are virtually countless. I came across fop few years ago and used it to generate our company phone book from a raw sql dump to xml to pdf (adding table of contet with hypertext document links, images, borders and stuff).

printing 'simple' pdf files is a piece of cake.
seems to me you're not aware of this tool.

your ad here:
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!