FellowTraveler / Open-Transactions-old

Open-Transactions democratizes financial and monetary actions. You can use it for issuing currencies/stock, paying dividends, creating asset accounts, sending/receiving digital cash, writing/depositing cheques, cashier's cheques, creating basket currencies, trading on markets, scripting custom agreements, recurring payments, escrow, etc. Open-Transactions uses strong crypto. The balances are unchangeable (even by a malicious server.) The receipt history is destructible. The transactions are unforgeable. The cash is unlinkable. The cheques are non-repudiable. Etc.
http://opentransactions.org
408 stars 84 forks source link

New OTSettings.h, OTPaths.h; reworked OTSocket, clean OTLog #137

Closed da2ce7 closed 11 years ago

da2ce7 commented 11 years ago

This pull request contains a backport of much of the work that I did in my c++x11 branch (without any c++x11 dependencies).

All of the paths and settings code has been moved out of OTLog.

OTAPI_Wrap now makes sure that things are destructed in the correct order. (and no need to explicitly call OT_API::Init() any more).

All the folder names can be set in the config now.

TransportCallback now is a struct, that references a member function in OT_API. (no longer a static function).

jspit commented 11 years ago

downloaded all from your version of open-transactions\

all compiled even though there were a lot of warnings

the otapi-php will only compile with vs2010

tried to run moneychanger and the following error comes up

Exception in thread "main" java.lang.NoSuchMethodError: SwigDirector_OTCallback_runOne at org.opentransactions.jni.core.otapiJNI.swig_module_init(Native Method) at org.opentransactions.jni.core.otapiJNI.(otapiJNI.java:850) at com.moneychanger.ui.Load.Init(Load.java:123) at com.moneychanger.app.Moneychanger$Loader.Load(Moneychanger.java:108) at com.moneychanger.app.Moneychanger.main(Moneychanger.java:98)

Press any key to continue . . .

in moneychanger, what method did you use to pass on the password to the server ? ie successful log-in.

thanks any clues ?

On 18 December 2012 10:23, Cameron Garnham notifications@github.com wrote:

This pull request contains a backport of much of the work that I did in my c++x11 branch (without any c++x11 dependencies).

All of the paths and settings code has been moved out of OTLog.

OTAPI_Wrap now makes sure that things are destructed in the correct order. (and no need to explicitly call OT_API::Init() any more).

All the folder names can be set in the config now.

TransportCallback now is a struct, that references a member function in

OT_API. (no longer a static function).

You can merge this Pull Request by running:

git pull https://github.com/da2ce7/Open-Transactions master

Or view, comment on, or merge it at:

https://github.com/FellowTraveler/Open-Transactions/pull/137 Commit Summary

  • v0.88.a: Setting and Socket changes.
  • fix so zmq quit's in correct order

File Changes

  • M VERSION (2)
  • M include/otapi/OTAPI.h (11)
  • M include/otapi/OTClient.h (2)
  • M include/otapi/OTServerConnection.h (14)
  • M include/otapi/OpenTransactions.h (149)
  • M include/otapi/otapicli.h (2)
  • M include/otlib/OTLog.h (322)
  • M include/otlib/OTMessageBuffer.h (5)
  • A include/otlib/OTPaths.h (366)
  • M include/otlib/OTSettings.h (65)
  • M include/otlib/OTStorage.h (2)
  • M include/otlib/OTString.h (44)
  • M include/otlib/OTWallet.h (1)
  • M include/ots/OTServer.h (6)
  • M project/ot/ot.vcxproj (129)
  • M project/ot/ot.vcxproj.filters (137)
  • M project/otapi/otapi.vcxproj (143)
  • M project/otapi/otapi.vcxproj.filters (137)
  • M project/otlib/otlib.vcxproj (3)
  • M project/otlib/otlib.vcxproj.filters (9)
  • M src/otapi/OTAPI.cpp (110)
  • M src/otapi/OTAPI_Basic.cpp (2)
  • M src/otapi/OTClient.cpp (85)
  • M src/otapi/OTServerConnection.cpp (11)
  • M src/otapi/OT_ME.cpp (70)
  • M src/otapi/OpenTransactions.cpp (1453)
  • M src/otapi/otapicli.cpp (24)
  • M src/otd/main.cpp (35)
  • M src/otlib/Makefile.am (4)
  • M src/otlib/OTAccount.cpp (19)
  • M src/otlib/OTAssetContract.cpp (14)
  • M src/otlib/OTContract.cpp (2)
  • M src/otlib/OTCron.cpp (6)
  • M src/otlib/OTCronItem.cpp (4)
  • M src/otlib/OTLedger.cpp (30)
  • M src/otlib/OTLog.cpp (2075)
  • M src/otlib/OTMarket.cpp (6)
  • M src/otlib/OTMessageBuffer.cpp (28)
  • M src/otlib/OTMint.cpp (12)
  • A src/otlib/OTPaths.cpp (1428)
  • M src/otlib/OTPseudonym.cpp (28)
  • M src/otlib/OTPurse.cpp (8)
  • M src/otlib/OTSettings.cpp (402)
  • M src/otlib/OTSmartContract.cpp (30)
  • M src/otlib/OTStorage.cpp (71)
  • M src/otlib/OTString.cpp (31)
  • M src/otlib/OTToken.cpp (24)
  • M src/otlib/OTTransaction.cpp (16)
  • M src/otlib/OTWallet.cpp (12)
  • M src/otmint/main.cpp (37)
  • M src/ots/OTServer.cpp (362)
  • M src/ots/xmlrpcxx_server.cpp (300)

Patch Links

Jesmond Spiteri

da2ce7 commented 11 years ago

New Windows Builds: https://drive.google.com/#folders/0B1vBlIVORn8nVFRJTzNnc3Y5Rm8

jspit commented 11 years ago

Great work Cameron

when you run the php_ot_test.php from the browser

the following is being written in ot-clinet log

OTPseudonym::Loadx509CertAndPrivateKey: Although the ascii-armored file (certs/T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV) was read, LoadPrivateKey returned false. OTPseudonym::LoadPrivateNym OT_API::getAccount: Failure calling Loadx509CertAndPrivateKey: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV OTWallet::GetOrLoadPrivateNym OT_API::getAccount: Unable to load private Nym for: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV

should this be the case ?

On 19 December 2012 05:56, Cameron Garnham notifications@github.com wrote:

New Windows Builds: https://drive.google.com/#folders/0B1vBlIVORn8nVFRJTzNnc3Y5Rm8

— Reply to this email directly or view it on GitHubhttps://github.com/FellowTraveler/Open-Transactions/pull/137#issuecomment-11517565.

Jesmond Spiteri

jspit commented 11 years ago

Cameron

FYI

Windows dependancies - solved

you have to run apache as a service - otherwise it will be calling the windows system account account.

jspit commented 11 years ago

php test script

when you ran the script for php, did it hang on LoadWallet() as it should be expecting a password from user or where you using special data

jspit commented 10 years ago

Hi Cameron

any new updates re window Builds: https://drive.google.com/#folders/0B1vBlIVORn8nVFRJTzNnc3Y5Rm8 ? https://drive.google.com/#folders/0B1vBlIVORn8nVFRJTzNnc3Y5Rm8

i had to upgrade php to 5.5 and the otapi-php.dll extensions won't load due to mismatch found in dll.

Thanks Regards Jesmond https://drive.google.com/#folders/0B1vBlIVORn8nVFRJTzNnc3Y5Rm8

On 19 December 2012 05:56, Cameron Garnham notifications@github.com wrote:

New Windows Builds: https://drive.google.com/#folders/0B1vBlIVORn8nVFRJTzNnc3Y5Rm8

Reply to this email directly or view it on GitHubhttps://github.com/FellowTraveler/Open-Transactions/pull/137#issuecomment-11517565.

Jesmond Spiteri

da2ce7 commented 10 years ago

agah... those builds are old!

da2ce7 commented 10 years ago

you really should be building your own version.

jspit commented 10 years ago

ok - no problem i dowloaded the latest version of open-transactions and chainscript and all the rest and tried to compile using visual studio 2013 - too many erros during compilation due to configuration issue.

But thanks anyway.