Pages:
Author

Topic: PAYB.TC - The Free Bitcoin Address Shortener (Read 4444 times)

hero member
Activity: 812
Merit: 1000
October 23, 2011, 11:22:54 PM
#35
today i thought of a new way to visualize bitcoin addresses... using a range of colours which are derived from each address.

check them out:

http://payb.tc/donate/rainbow =

http://payb.tc/tronlet/rainbow =

http://payb.tc/joelkatz/rainbow =

http://payb.tc/ashmoran/rainbow =


code here:

Code:
$addr=substr(preg_replace('/[^a-zA-Z0-9]/','',$_GET['addr']),0,34);

$colors=str_split('00'.addressToHash160($addr),2);

//html version:
//for ($i=0; $i<7; $i++) echo '
';

//png version:
$img = imagecreatetruecolor(350,50);

for ($i=0; $i<7; $i++) {
$color = imagecolorallocate($img,hexdec($colors[$i*3+0]),hexdec($colors[$i*3+1]),hexdec($colors[$i*3+2]));
imagefilledrectangle ($img,$i*50,0,$i*50+49,49,$color);
}

header('Content-Type: image/png');
header('Content-Disposition: inline; filename='.$addr.'.png');
header('Content-Transfer-Encoding: binary');
header('Pragma: public');
header("Cache-Control: private",false); // required for certain browsers    
ob_clean();
flush();
imagepng($img);
imagedestroy($img);

addressToHash160 function (by theymos, i believe) can be found here: http://pastebin.com/vmRQC7ha


have fun Cheesy

hero member
Activity: 812
Merit: 1000
I have confirmed with Jered (owner of tradehill) that the short link http://payb.tc/tradehill was not made by them.

probably obvious, but i thought i'd check with them before just deleting it.

anyone using a shortening service (not just mine, but any), should be careful that they are getting the link directly from the person they intend to pay (just like you would with an ordinary bitcoin address).
hero member
Activity: 812
Merit: 1000
I had a thought about PAYB.TC - would it be useful to have a link from an address page to the address's blockexplorer.com page?

done!

Thats what I said earlier.. http://forum.bitcoin.org/index.php?topic=27285.msg372019#msg372019

yes, i see thank you. just hadn't had much time to work on the site until today.
newbie
Activity: 22
Merit: 0
Hey, the link is great, thanks for that. QR code works great too, just scanned it off my MBP screen with my iPhone.

About the mtgox/tradehill accounts… maybe it's already time you need "verified" accounts like Twitter? Smiley
full member
Activity: 191
Merit: 100
I had a thought about PAYB.TC - would it be useful to have a link from an address page to the address's blockexplorer.com page?

done!

Thats what I said earlier.. http://forum.bitcoin.org/index.php?topic=27285.msg372019#msg372019
hero member
Activity: 812
Merit: 1000
one more update... just added xml too (i hope the formatting is acceptable, otherwise please some xml guru tell me if i need to change it):

http://payb.tc/donate/xml

thanks everyone for your interest
hero member
Activity: 812
Merit: 1000
also, i've added links to the various api options on each page.
hero member
Activity: 812
Merit: 1000
I had a thought about PAYB.TC - would it be useful to have a link from an address page to the address's blockexplorer.com page?

done!

also a couple of other things...

firstly, thanks to whoever just sent me 0.1 btc donation, that's great Smiley

secondly, i noticed in the database the following short links:

http://payb.tc/mtgox edit: confirmed to be unofficial
http://payb.tc/tradehill edit: confirmed to be unofficial

unless the owners of mtgox and tradehill can confirm they are the owners of those addresses, i think we should assume it's just someone trying to be a bit sneaky.
newbie
Activity: 22
Merit: 0
I had a thought about PAYB.TC - would it be useful to have a link from an address page to the address's blockexplorer.com page? I just went to look up my own address, it'd save a copy and paste if nothing else
newbie
Activity: 22
Merit: 0
Yes, I don't expect they will change. Like I say, wasn't suggesting anything would go wrong with payb.tc (I've already got my tip jar name - http://payb.tc/ashmoran - which I've given to friends), just that the principle of address shorteners involves more trust than, say, URL shorteners.

Might put my payb.tc link in my sig, in fact…
hero member
Activity: 812
Merit: 1000
Is there any way to make shortened addresses verifiable?

i'm not really sure other than have someone else run a cron to check addresses every x minutes and then alert the owner if it has changed.

payb.tc addresses aren't editible by members so they should never change.
hero member
Activity: 812
Merit: 1000
How long is a short name guaranteed to work? Is there an expiration time?

there's no expiration time. i'll keep the site up as long as it's still being used. that might be decades.

maybe i should do some kind of internal hit counter though, and if a particular link hasn't been hit in the last 12 months say, then that shortlink can maybe be freed up for someone else to register.
hero member
Activity: 812
Merit: 1000
Neat!

I would prefer if it defaulted to the text version and you could point to the html version if you chose to.

http://payb.tc/rethaw/text

that would make it a lot harder to spread virally via the 'get your own free short link' link on everyone's page. hardly seems fair.
newbie
Activity: 22
Merit: 0
Is there any way to make shortened addresses verifiable?

Right now you have to trust the owner of a shortener to not change addresses. Eg the owner of EVILB.TC might shorten http://evilb.tc/yourname honestly for a few weeks (or months, or years) then suddenly change the address (or all of them on the site) to one of his own.

Short, memorable names for Bitcoin addresses are great, but is there any way to achieve them without (or with less) centralised trust?

Note: I'm not saying that PAYB.TC is evil :-)
sr. member
Activity: 288
Merit: 263
Firstbits.com/1davux
How long is a short name guaranteed to work? Is there an expiration time?
sr. member
Activity: 378
Merit: 255
Neat!

I would prefer if it defaulted to the text version and you could point to the html version if you chose to.

http://payb.tc/rethaw/text
full member
Activity: 191
Merit: 100
It would be nice if there was a link to blockexplorer.com/address/XXX on the site
hero member
Activity: 812
Merit: 1000
thanks! i got the idea when i saw someone else charging money for their shortening service and decided to do a free one.
donator
Activity: 213
Merit: 100
SEIZED by Gunthar
Great idea!
member
Activity: 104
Merit: 100
Very creative domain name, I like it!  Grin
Pages:
Jump to: