Bitcoin Forum
May 05, 2024, 10:38:19 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Flattr like functionality using "open with..." filetype mime  (Read 1179 times)
jago25_98 (OP)
Hero Member
*****
Offline Offline

Activity: 900
Merit: 1000


Crypto Geek


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.

Bitcoiner since the early days. Crypto YouTube Channel: Trading Nomads | Analyst | News Reporter | Bitcoin Hodler | Support Freedom of Speech!
1714905499
Hero Member
*
Offline Offline

Posts: 1714905499

View Profile Personal Message (Offline)

Ignore
1714905499
Reply with quote  #2

1714905499
Report to moderator
1714905499
Hero Member
*
Offline Offline

Posts: 1714905499

View Profile Personal Message (Offline)

Ignore
1714905499
Reply with quote  #2

1714905499
Report to moderator
1714905499
Hero Member
*
Offline Offline

Posts: 1714905499

View Profile Personal Message (Offline)

Ignore
1714905499
Reply with quote  #2

1714905499
Report to moderator
In order to achieve higher forum ranks, you need both activity points and merit points.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714905499
Hero Member
*
Offline Offline

Posts: 1714905499

View Profile Personal Message (Offline)

Ignore
1714905499
Reply with quote  #2

1714905499
Report to moderator
MoonShadow
Legendary
*
Offline Offline

Activity: 1708
Merit: 1007



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: 1288
Merit: 1076


View Profile
December 22, 2010, 08:33:42 AM
Last edit: December 22, 2010, 03:22:33 PM by grondilu
 #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 (OP)
Hero Member
*****
Offline Offline

Activity: 900
Merit: 1000


Crypto Geek


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. 

Bitcoiner since the early days. Crypto YouTube Channel: Trading Nomads | Analyst | News Reporter | Bitcoin Hodler | Support Freedom of Speech!
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!