Pages:
Author

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

legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
More updates to come in late March/Early April.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Has anyone been able to use this with blockchain.info API? I am having issues using the BDK bitcoin_get_received_by_address().

I am getting a Return Status Error of 102. I have isolated it to it being a an invalid address (even though the address is valid).

I think the issue might be that the blockchain.info API returns a JSON Object for validateaddress and I do not see anything in the BDK that converts the JSON Object to a PHP Array?

Get Received By Address only works if you have the private key in your Bitcoin client. The BDK is aimed at making Bitcoin client easier to communicate with and to intuitively apply math with out worries of precision or rounding issues.

How ever if your using the Blockchain.info api in php you would want to use the "json_decode()" function and then you can use the php array that is returned with the BDK library.
sr. member
Activity: 457
Merit: 250
Has anyone been able to use this with blockchain.info API? I am having issues using the BDK bitcoin_get_received_by_address().

I am getting a Return Status Error of 102. I have isolated it to it being a an invalid address (even though the address is valid).

I think the issue might be that the blockchain.info API returns a JSON Object for validateaddress and I do not see anything in the BDK that converts the JSON Object to a PHP Array?
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
An feature update was pushed in v0.0.44 where a generated receipt can contain any additional information visit the wiki page to see the changes, code is already published as well. https://github.com/Xenland/Bitcoin-Development-Kit/wiki/BDK-Generate-Receipt

For those who don't already know this library only relies on Bitcoin and nothing else(referring to databases) so with that in mind we use the "labels" that the Bitcoin client provides as a storage database and with the new updates one could create a storable receipt like the following

Quote
{
    "checksum": "ab37bc6866e253c5ce3ba7e7c91b7299140630afb7197e38e5a63f1e8b8b4f86",
    "timestamp_generated": 1357981122,
    "amount_due_in_satoshi": 100000000,
    "products_in_receipt": [
        "1"
    ],
    "additional_info": {
        "email": "[email protected]",
        "refundAddress": "16oLFeSgUPFB1vm3LZuXHTXztyt5mDMsJV"
    }
}

UPDATES: just opened up shop, I'm testing out the BDK library in a real life setting and am selling some products I got for cheap (I will by posting up photos by me instead of the ones taken from the internet by tomorrow, its too late right now for me to finish). http://www.bitcoindevkit.com/shop/shop.php
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Some major fixes done to bdk_verify_message() (Mostly helps consistency and more accurate checking -- before a lot of messages were coming out invalid when they were infact valid)

The other major fix is done in bdk_prove_coin_ownership() it now uses the updated verify message fixes and now it will sha256 a message to compare against with the signature (Look in the code to see what I mean exactly).

Alpha Release Candidate v0.0.43
http://bitcoindevkit.com/dl/v0_0_43/bdk_v0_0_43_aRC1.tar.bz
SHA256SUM: 1a6a16a2879cbe4f96d0afb0c723c3f839cb63c79c31c772b39a469c0c251f81

http://bitcoindevkit.com/dl/v0_0_43/bdk_v0_0_43_aRC1.zip
SHA256SUM: 1a6a16a2879cbe4f96d0afb0c723c3f839cb63c79c31c772b39a469c0c251f81


Report to github for bug reports


UPDATES: Goals and road map posted http://www.bitcoindevkit.com/aboutus/goals.php
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Security issue in bdk_prove_coin_ownership() has been found.
It only recognizes when the bitcoin_validate_message() successfully runs but it didn't recognize weather the message is valid or not, in version 0.0.42 this is updated and published.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
I've uploaded example #3 it demonstrates the bdk_prove_coin_ownership() function Previously known as: bdk_login_with_coin_address() function

Try it out let me know what you think.
http://www.bitcoindevkit.com/examples/example3.php
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
 I uploaded v0.0.40 (Comes with the shopping cart functions)



Still working on the "remove product id from cart" function will come in the future.
member
Activity: 84
Merit: 10
I'll continue to use it and see how it does in my development environment. I think I could do a lot with it
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
What is the best you for you to keep in contact Zenland?

Basically, while trying to open a test connection using the bitcoin_open_connection() function, the array that gets returned is -1 and Null.

While I am able to retrieve the full getinfo using the jsonRPCClient.php file that was included in your package.

In both cases, I was connecting through the public domain name and not 127.0.0.1.

Edit: I just uploaded the new library file and changed nothing else at all, I have a successful connection now through your file.

You can always contact me by skype or email.

Glad to hear it is working now, Cheers mate!
member
Activity: 84
Merit: 10
What is the best you for you to keep in contact Xenland?

Basically, while trying to open a test connection using the bitcoin_open_connection() function, the array that gets returned is -1 and Null.

While I am able to retrieve the full getinfo using the jsonRPCClient.php file that was included in your package.

In both cases, I was connecting through the public domain name and not 127.0.0.1.

Edit: I just uploaded the new library file and changed nothing else at all, I have a successful connection now through your file.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
I was getting ready to build my own function set because yours wasn't connecting to bitcoind for some odd reason while my personal test connection was having no problem, but I'm gonna try your updated script first

I was having a problem with my public vps on my script and the issue seemed to be in jsonRPCClient.php as something was going wrong with credentials(The solution in my case was to have the BDK connect through the public ip address). Was this the similar issue to yours? I'd be happy to see your successful code and merge it into the scripts if you don't mind.
member
Activity: 84
Merit: 10
I was getting ready to build my own function set because yours wasn't connecting to bitcoind for some odd reason while my personal test connection was having no problem, but I'm gonna try your updated script first
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Note: I've included the time it took me to make the entire page for that particular example (including start to finish with testing and lite pen-testing)

Entire Examples List: http://www.bitcoindevkit.com/examples.php

EXAMPLES LIST DESCRIPTIONS (More to come as I make more examples)
I tested the script with out the 5 second sleep on it and its almost instantly pops up the address.
(Total Hours Accumulated: 1) Example1: Generate a new address: http://www.bitcoindevkit.com/examples/example1.php

(Total Hours Accumulated: 2.5) Example2: validate an address: http://www.bitcoindevkit.com/examples/example2.php


Coming Soon
*Shopping Cart Example (Total Hours Accumulated: 3)
*Login With Bitcoin Address/Verify Address/Edit account with address verification/etc
*
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
NOTE TO SELF AND OTHERS: it seems that Bitcoin wasn’t accepting credentials from 127.0.0.1 form xenlands VPS and the solution was to set the ip address to the external address, but also to config Bitcoin to ONLY allow from that external address.... Odd.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man

Actually I think I found a VPS I could use to feature this library (and get it off the ground). Sit tight everyone examples on the wayyyyy!!

UPDATES
While setting up my VPS for the BDK library I noticed that the includes doesn’t work so smoothly (compared to my local dev computer), I changed it thinking others might have had the same issues.
Changes have been updated to version 0.0.39 and are already published



UPDATES:
*(Soon to be added in 0.0.40) Added function bdk_start_session_receipt() (To help assist users with a consistent proven state full method for storing product ids with out a database.)
*(Soon to be added in 0.0.40)  bdk_get_session_receipt_information() (Retrieve information based on the given information -- Mostly used for displaying items in the shopping cart)
*(Soon to be added in 0.0.40)  bdk_add_to_session_receipt() (To add product ids to the state full function)
*(Soon to be added in 0.0.40) bdk_remove_from_session_receipt() (To remove product ids from the state full function)
*(Soon to be added in 0.0.40) bdk_checkout_session_receipt() (To convert the session receipt information to be processed into the bdk_generate_receipt() function
full member
Activity: 126
Merit: 100
Can we have a test site using the script?
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
BDK login with coin address will not only display an encoded string it will look like the following...
Quote
The following is to verify proof of coin address ownership and in no way is a legally binding contract. |1357265407|b3b25bb40f27aa744c57f6d9ff1927f96217e42eb5ae40433cc011bc2c62ea59|455a2776a68285f1c5d48eed957a8b772cf060df914ac049335afd97a352cec135b2dcf73f8ef6b4cddbe4abf6a542c13c3d96035185d608de16b83465f518652eb63bb45a57d5a375394e1e1d789556586ab481d307722d226a1fd71fbb177d6608984e94eb0b0d972b337e176d45a22b77f094314290430a7169329c2e14be|15TraoPG7GFq6omJ7THJ3Zfyxz56uzzD2D
This is to prevent any ambiguities and to promote users to sign only Clear and concise messages.

This update will be included in version number 0.0.40
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
BDK_login_with_coin_address() fix: In step one there is a return status of 101 and in step two there is a return status of 101 so to keep them seperate I have renamed return status of step 2 from 101 to 106.

Updates have been pushed to github and the wiki page is updated as well.

Wiki page: 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
BDK_login_with_coin_address() Fix: The return status code for Bitcoin client connection failed was missing and has replaced return status 100. Return_status 100 has been moved to 104. The wiki page has been updated accordingly: https://github.com/Xenland/Bitcoin-Development-Kit/wiki/BDK-Login-With-Coin-Address
Pages:
Jump to: