Pages:
Author

Topic: PHP Bitcoin Development Kit | v0.0.46_pre15 | Alpha | BitcoinDevKit.com - page 4. (Read 16305 times)

legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Domain seems to be working again.

Also I switched to PHP hosting so I will start posting up the most up to date references on the website and then periodically sync the updates to git-hub for historical purposes.

http://BitcoinDevKit.com
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
The domain seems to not be redirecting properly and hasn’t been for the past 24+ hours I'm not sure why yet I'm looking into the issue for now just go to the following link to view the website: http://xenland.github.com/Bitcoin-Development-Kit/
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Function Added
Bitcoin Get Transaction function has been added.

Wiki page is under construction: https://github.com/Xenland/Bitcoin-Development-Kit/wiki/Bitcoin-Get-Transaction
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
First bug fix
*Login with Coin Address never returns successful even upon a successful run. This has been fixed and published in v0.0.32

Wiki Update
Login with Coin Address Wiki page is completed
https://github.com/Xenland/Bitcoin-Development-Kit/wiki/BDK-Login-With-Coin-Address
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
The website is taking longer then I thought but only because I require quality, The first tutorial is up for generating a bitcoin address, they are not too in-depth as its ment to intice developers to purchase the packages that come with tutorial videos and example scripts.
(Clear your cache if you've been to our site before it seems cache is sticking on some users browsers)
Tutorial Link: http://xenland.github.com/Bitcoin-Development-Kit/documentation/tutorials.html
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
The official website is undergoing a facelift should be less then 24 hours till completed (I will post noticed when functional)
http://bitcoindevkit.com
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Looks like the error is fixed. The problem was that the check out page was redirecting you to the reciept.php page when the correct page is receipt.php
Let me know if you have any issues now.
legendary
Activity: 1400
Merit: 1005
Selling my "BDKp Donation Package" on BitcoinMall.net for 0.5 Bitcoins (If you want to donate more just send more Bitcoins to the receipt address and much will be appreciated!)
Here is the link to the donation page: http://cheaperinbitcoins.com/product.php?id=64
The check out page will ask for your email and I will send you a download link just for you thanks Smiley
I tried... get a page not found error when I tried to click "Generate Receipt" to pay.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Selling my "BDKp Donation Package" on BitcoinMall.net for 0.5 Bitcoins (If you want to donate more just send more Bitcoins to the receipt address and much will be appreciated!)
Here is the link to the donation page: http://cheaperinbitcoins.com/product.php?id=64
The check out page will ask for your email and I will send you a download link just for you thanks Smiley
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Sorry Xenland, I just haven't had the time to devote to giving this a try yet.  Will try to do so soon!

Do what you can Cheesy No rush, its the holidays mate!
legendary
Activity: 1400
Merit: 1005
Sorry Xenland, I just haven't had the time to devote to giving this a try yet.  Will try to do so soon!
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
I forgot to mention that if your getting errors while trying to do the coin_authentication function; Keep in mind you have 20 minutes before the token to sign is invalid Wink

More Updates:
The BDKp library will be featured in the upcoming "Mining Farm" updates(targeted for release in January)
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
How to use the BDKp for login authentication with out making contact to a database(A Free Tutorial - Usually a Donors Privilege)

Foreword:
Obviously the point of an authentication system is to "save" some data attached to that "account" that the user owns so although you'd probubly want a database to save user interaction information for your web site (or service) you can authenticate the visitor with their Bitcoin address (With out making contact with the database initially) and this is makes logins more powerful because for
one you need the Private Key to the Bitcoin address to even attempt to login which requires an attacker to gain access of your visitors computer/cellphone(Which are usually turned on/off constantly).
two there is no passwords stored on servers so this way if there is a database compromised users can feel safe to know that they don't have to change "ALL" their passwords for other websites that use the same pass that was compromised.
three this could add security to database compromise for sensitive information and provide control to the users, authenticated users can have their sensitive data encrypted to only open up with their private key this could force some business models to require user authorization before any data can be processed(This makes users feel safe online). Also if a business wanted the security of the encryption from database compromise but wanted to process data while the user is offline they can send their user data to a processing server that is separate from their website servers which would promote security for everyone. \

Okay so here is the example codes

Step 1
First off you need to ask the user what their Bitcoin address is. Once you have received that information you can then continue to "Step 1" of authenticating a user.
The first step requires you to enter the Bitcoin address into the function and it will spit out a string for the user to "Sign" with the in-putted Bitcoin address
Code:
$coin_auth_step1 = bdk_login_with_coin_address('1NaEAzo1SSzinaSodBicxA6ugd3edDzX7d', 1);

if($coin_auth_step1["return_status"] == 1){
 //Successfull function execution happened, we can safely be rest assured that we can echo to the user a string to sign
 echo "Sign the following string but copying and pasting it into the "Sign Message" dialog found in your Bitcoin client.
";
 echo $coin_auth_step1["string_to_sign"];
}else{
 //Something happened tell the user to try again
 echo "Try again";
}


Step 2
The user should be given a single line input text box to input the signature. once the user has pasted in their signature and presses submit, the form submission should tell the next page what the original data was (The BDK library will check the checksum if the data has been broken/altered)

So in the submission page it should look like this (With form variable-values already in-putted)
Code:
$coin_auth_step2 =bdk_login_with_coin_address('1NaEAzo1SSzinaSodBicxA6ugd3edDzX7d', 2, 'H1toEU8fhdT5SrMWTKpsRi/2/S93o+zRfUAyfmVS7ew6PoOepO0VOCX5+XZJSo81LX7+I8VixTWjhAskqnCYeVM=', 'MTM1NDk5ODQxMHwyYzYzNTVmZWQxYzdmM2NjOGQyNTFiZDc4N2VlNWIzZDZkZGE2YmE1NjdmOTg3MDU0MWI0ODQ2OGIyN2QxYWIxfDU1NjUwMDM5MDgwYzdmY2Y2ZjJmNjlmZWJlMjM4YmIwODY4MTVkMGIxNmUyMmQyYjllZGI0OGZiOWFiZDIxOWYwZWFkNWQ0ZWMxYzBkZmRlODU5ZTk2ZmM5NGZmZDQ4NzkzOTJlYWMzNTI5ZGQwMzU1ZTQzNjI5YTA0MTBhNWY3YTljYmE0Y2QwY2Y3YTBhZjlkNjI4MzNiODk5YWM1NGNkZTZkMmI5ZmZiNWYxZTJiM2NiYzYxYzgxMmYyYTU5YWE5OTg5MTE3MWYyNTEzYmY0YWZjMzcyYzE2YTVkNzU5NjYxZDRkNGMyYTg5ZGI4NzcyNWQwZjU5ODVmMTQyMmZ8MU5hRUF6bzFTU3ppbmFTb2RCaWN4QTZ1Z2QzZWREelg3ZA');

if($coin_auth_step2["return_status"] == 1 && $coin_auth_step2["bitcoin_address_authenticated"] == 1){
 //Successfull authentication!
 echo "YOU OWN THAT ADDRESS :) Welcome back!";

 //This is were you execute your session functions.
}else{
 echo "FAILURE";
}
?>



NOTES: The user has 20 minutes to sign the request and submit to server before it is invalid
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Actually for now I would like to stay with AGPL and if anyone needs different licensing please contact me, I would just like to do some surveys for those that plan on taking the library to the underground for their own uses and so the AGPL facilitates that process for me. In the future when I have enough survey data I plan to make it LGPL or even perhaps BSD/MIT but I need survey information and would like some compensation for my time so please be patient.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
I have been freshing up on my FOSS licenses and I think I might release this library under LGPL instead of AGPL. Any thoughts? Conclusions? mishaps? Sounds like a great plan to me to benefit business and non-profit motivations.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Updates

Version 0.0.31 Alpha released
Download Link for v0.0.31 Alpha
SHA256SUM ce030d1a9865cb0bcaa7b006d6dc428c37b24196ed560a6da6de3677321e0571
OpenGPG Key Id: DBB861F9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQGcBAABAgAGBQJQw7GdAAoJEKTJxq7buGH5y5sL/3HS6nLeJfx/nfPzi/5mkVLv
pAQ9911YoJWUDUEjKjrBP04/aslYpOzfE9SdEM+nOdSJE0P0shp2r41fiWUq41Zu
mqlzRITQtj8V9ZeTcrdKvxrXPcyJgxXwCJ0YbXUHB4F3yO+/5dQxUSSUBiaiq76i
zuozTcJHU6Hhlz4ZHX4/XPqtjBM8Cdld7NcizTKFGLgoxHuRL7pgnHAfunJprTfX
sGVCmlTRdWApmciDdsPW0mjWlPPK/g3Uz2O4IRaM8bJ8ChsxPD113swouudhSfef
XuSMSJmb7lQ8uCNZjLXMYWzCFIJeNXxM4aFos6X8ZSoUfDrsrOf4rkxs2Ywg0JmP
+YtGymbqHD3bRH/WQ/j14wIe55wRQkq/EckcEqWq5VeE7xJ0MLx2FFLnTeH5b7oO
/vNf3ot8Jszl8eSKVMpk4v+o1I6e5cHoxR55FvLyRLRWzW3sMkXwlTy0NalSo4Rc
Yw8+izdkvkCo8DVvP+2Xtw3KJd7F5b6k5jd0McHwbA==
=bzyZ
-----END PGP SIGNATURE-----



BitcoinDevKit.com
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Updates:
Added the function (considered completed and fully tested) called bdk_login_with_coin_address()
Its a function that does two steps into one, The first step is to output a randomize string (with some checksum/integrity and server signature data emedded into it aswell)
The user signs the string with their own Bitcoin address with the Bitcoin.org client. once signed they submit the signature and the original token data they had to sign (The token data could be embedded in a file string query if you prefer not to use a database). If the signature is valid to the Bitcoin address and the data is intact and the signature is still valid upon return then the user is authenticated. This function is just a mechanism for doing all the "authenticating" work for you, it dose not however add the "session" elements to your website that is for you to decide wheather its cookies, PHP sessions, database etc its up to you, this library will just make sure you properly authenticated the Bitcoin user correctly.

Wiki page for this function is going up soon!
legendary
Activity: 1400
Merit: 1005
Thanks - hopefully I can test it this evening.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Just pushed updates for the Bitcoin Send Many function, however I ran out of BTC to test, if someone wants to help test, I'd recommend sending some testing BTC to a fresh wallet and then using this library with sendmany/sendfrom, let me know what code you run and what errors you get (if any). Much is appreciated!
Pages:
Jump to: