Bitcoin Forum
December 10, 2016, 09:00:34 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Flattr like functionality using "open with..." filetype mime  (Read 932 times)
jago25_98
Hero Member
*****
Offline Offline

Activity: 871


http://moneybutnofixedabode.blogspot.com


View Profile WWW
December 22, 2010, 07:09:30 AM
 #1

 
 If we had a filetype, such as .bitcoin,
we could have that filetype open bitcoin to send a payment without needing to copy and paste the address.

 You could have the payment to info stored in an xml file:

- amount to pay
- address to pay to
- comment (this could be used to identify the product or tip in the case of a flattr type setup)

 Of course, the file would have to be rigorously checked to avoid abuse.
1481360434
Hero Member
*
Offline Offline

Posts: 1481360434

View Profile Personal Message (Offline)

Ignore
1481360434
Reply with quote  #2

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

Activity: 1666



View Profile
December 22, 2010, 07:23:37 AM
 #2

Could the XML file be signed in such a way that a bitcoin client could check the authentisity?

"The powers of financial capitalism had another far-reaching aim, nothing less than to create a world system of financial control in private hands able to dominate the political system of each country and the economy of the world as a whole. This system was to be controlled in a feudalist fashion by the central banks of the world acting in concert, by secret agreements arrived at in frequent meetings and conferences. The apex of the systems was to be the Bank for International Settlements in Basel, Switzerland, a private bank owned and controlled by the world's central banks which were themselves private corporations. Each central bank...sought to dominate its government by its ability to control Treasury loans, to manipulate foreign exchanges, to influence the level of economic activity in the country, and to influence cooperative politicians by subsequent economic rewards in the business world."

- Carroll Quigley, CFR member, mentor to Bill Clinton, from 'Tragedy And Hope'
grondilu
Legendary
*
Offline Offline

Activity: 1134


View Profile
December 22, 2010, 08:33:42 AM
 #3

The .bitcoin file could look like this :

Code:
1Hy9dexzNzjvQYkYy6zKRVZMU8k2j5vuPt;1; some comment

The associated command would be :

Code:
#!/bin/bash

if [[ -z "$1" ]]
then echo "usage: $0 bitcoin-file" ; exit 1
elif
    addr="$(cut -d\; -f1 $1)"
    [[ ! "$addr" =~ ^[0-9a-zA-Z]{35}$" ]] ||
    wget -O - -q http://blockexplorer.com/address/$addr |
    grep -i -q "Invalid address"
then echo "Wrong bitcoin address or file format" ; exit 2
elif
   amount="$(cut -d\; -f2 $1)"
   [[ ! "$amount" =~ ^[1-9]+$|^0\.[0-9]+$ ]]
then echo "wrong format for amount" ; exit 3
elif
   comment="$(cut -d\; -f3 $1)"
   zenity --question --text "Do you want to send $amount to $addr with \"$comment\" as a comment ?"
then bitcoind sendtoaddress $addr $amount "$comment"
fi


This version requires the zenity package
jago25_98
Hero Member
*****
Offline Offline

Activity: 871


http://moneybutnofixedabode.blogspot.com


View Profile WWW
December 26, 2010, 11:05:22 PM
 #4

Could the XML file be signed in such a way that a bitcoin client could check the authentisity?

I'm not the most technical person here. MD5 hash should be possible yeah guys?

That mime looks like it should work straightway. Reliant on a domain name though... feels like more points of failure with a browser involved. I really meant take it straight to Bitcoin. On the other hand, that would be useful straightaway. I think better, if using a browser address to take it to Bitcoin first, pass that address and then open a browser window from there. 
Pages: [1]
  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!