Lots of exciting news and updates!
Well I want to thank our contributor da2ce7 whose API updates have
finally been merged back into the main branch. Great job da2ce7!!
I spent a lot of time over the past few weeks updating the scripts and
java code to go along with the new API, as well as adding a lot of new
opentxs (command line) commands. (Some details below.)
As always, we've placed a huge priority on making builds available and
easy to replicate, for the Windows, Mac, and Linux platforms, in a
variety of languages.
---------------------------
Win32 builds of the OT-API!
for C++ and Java.
Zipfile:
https://github.com/FellowTraveler/Open-Transactions/downloadsWith: C++ headers, .java API files, exes, libs, and DLLs.
(Source code available at same URL.)
---------------------------
FYI: You can also build this same API for PHP, Perl, Python, Ruby, C#, D, etc.
Makefiles and MSVC project files ** ARE ** provided with OT!
Remember, it's an open-source project, so feel free to pitch in!
Bitcoin donation address: 1NtTPVVjDsUfDWybS4BwvHpG2pdS9RnYyQ
---------------------------
Moneychanger (Java test-GUI)
pre-built jarfile:
https://github.com/FellowTraveler/Moneychanger/downloads(Source code available at same URL.)
---------------------------
Linux...
Thanks to contributor randy-waterhouse:
.deb, tarball, etc:
https://github.com/randy-waterhouse/opentxs/downloadsTo build your own:
https://github.com/randy-waterhouse/opentxs/blob/master/docs/INSTALL-MEMO-Linux.txt#L93Awesome!!
---------------------------
Are you a Mac or Linux developer, want to get started with OT?
Try this:
mkdir ~/Scratch
cd ~/Scratch
git clone git://github.com/FellowTraveler/Open-Transactions
cd Open-Transactions
autoreconf -i -f
mkdir build
cd build
../configure --with-java
make
make install
---------------------------
opentxs -- command-line tool
The command-line tool was written in OT-script, courtesy of the
chaiscript project:
www.chaiscript.comThe opentxs script is entirely contained in this file:
https://github.com/FellowTraveler/Open-Transactions/blob/master/scripts/opentxsSpecifically, all the commands that you see when you type "opentxs help"
or "opentxs list" are implemented in this one file:
https://github.com/FellowTraveler/Open-Transactions/blob/master/scripts/ot/ot_commands.ot(So you have plenty of easy-to-copy sample code showing how to properly
use the OT API in a software program.)
This was all written using an OT-script implementation of the
OT high-level API.
---------------------------
The OT high-level API
The complete code for that high-level API is available here in OT-Script
form:
https://github.com/FellowTraveler/Open-Transactions/tree/master/scripts/ot---------------------------
There is also a Java version of this same high-level API:
https://github.com/FellowTraveler/Moneychanger/blob/master/src/main/java/com/moneychanger/core/util/OTAPI_Func.javaMoneychanger was built using it, so for examples of how this Java API is
used, please refer to the Moneychanger source code.
---------------------------
Using the High-level API (article):
https://github.com/FellowTraveler/Open-Transactions/wiki/Use-Cases---------------------------
Enjoy!
Your buddy,
-Fellow Traveler
P.S. Don't forget to check out the new test script written in bash.
It's located in the Open-Transactions/scripts/tests folder.
P.P.S. Some info on the new commandline commands:
Send a direct transfer from FT's Silver account to Bob's Silver account:
opentxs transfer --myacct FT --hisacct "Bob's Silver"
Send a cheque, drawn on FT's Silver account, to Trader Bob:
opentxs sendcheque --myacct FT --hisnym "Trader Bob"
Send an invoice from FT to Trader Bob:
opentxs sendinvoice --myacct FT --hisnym Trader
You could also:
opentxs payinvoice
As well as:
...
accepttransfers -- accept all transfers in the asset account inbox.
acceptreceipts -- accept all receipts in the asset account inbox.
acceptinbox -- accepttransfers + acceptreceipts
...
acceptinvoices -- accept all invoices in the payments inbox.
acceptpayments -- accept all cheques/cash/vouchers in the payments inbox.
...
acceptmoney -- accepttransfers + acceptpayments
acceptall -- acceptinbox + acceptinvoices + acceptpayments
To create a password-protected cash purse:
opentxs exportcash --args "passwd true"
This way, when you give the cash purse to someone, you don't have to
know their public key in advance (to encrypt the purse to their public
key.) Instead, you just tell them the passphrase and they can import the
cash into their own wallet, using: opentxs importcash
It's pretty slick!
...More in a future episode.