Commit Graph

102 Commits

Author SHA1 Message Date
25424b9476
Update README.md 2020-06-23 20:21:57 +05:30
14d54c2046
Update README.md 2020-06-23 20:19:01 +05:30
754738f06f
Update README.md 2020-06-23 20:08:13 +05:30
ee26c73936
Update README.md 2020-06-23 19:59:09 +05:30
4f91a3e44e
Update README.md 2020-06-23 19:57:55 +05:30
f23dd9e6e8
Update README.md 2020-06-23 19:53:38 +05:30
33ec57cea1
Update README.md 2020-06-23 19:52:57 +05:30
e7fcd3dd0e
Update README.md 2020-06-23 19:48:38 +05:30
ee267bc31d
Update README.md 2020-06-23 19:32:49 +05:30
1925462202
Update README.md 2020-06-23 19:28:29 +05:30
Sai Raj
09569e729b
Merge pull request #8 from sairajzero/master 2020-05-22 18:53:22 +05:30
Sai Raj
7cbb0908d8
Merge pull request #3 from ranchimall/master 2020-05-22 18:52:17 +05:30
sairajzero
5e1e8a624f bug fix: new line in floData cause error
since newline char is not supported in floData, new line (\n) is replaced with space.
2020-05-22 18:50:29 +05:30
SaketAnand
57ff5ae0b9
README.md
Corrected the spelling of "retrieve" from "retrive' in floCloudAPI Section
2020-05-17 10:45:43 +05:30
5699e8dee4
Update README.md 2020-05-16 18:13:42 +05:30
aa7c5c909e
Update README.md 2020-05-16 17:55:30 +05:30
2265581971
Update README.md 2020-05-16 17:53:05 +05:30
6175ac9314
Update README.md 2020-05-16 17:47:27 +05:30
3a23206af9
Update README.md 2020-05-16 15:35:51 +05:30
cc20e28de3
Update README.md 2020-05-16 10:39:59 +05:30
afc286964f
Update README.md 2020-05-16 10:36:45 +05:30
572c559096
Update README.md 2020-05-16 10:33:04 +05:30
09490c560d
Update README.md 2020-05-16 10:14:11 +05:30
2099fa61ba
Update README.md 2020-05-16 09:37:08 +05:30
59dfc6f449
Update README.md 2020-05-16 09:35:17 +05:30
42f493b01b
Update README.md 2020-05-16 09:32:12 +05:30
3d9c763bee
Update README.md 2020-05-16 09:30:31 +05:30
aae73da57f
Update README.md 2020-05-16 09:07:07 +05:30
2f118217d9
Update README.md 2020-05-15 13:40:16 +05:30
Sai Raj
eee8e2e365
Merge pull request #7 from sairajzero/master 2020-05-14 04:00:51 +05:30
Sai Raj
aff5b927e9
Merge branch 'master' into master 2020-05-14 04:00:38 +05:30
Sai Raj
7d65c4da8e
Update README.md 2020-05-14 03:57:23 +05:30
sairajzero
fccf2fdebd Update README.md 2020-05-14 03:52:45 +05:30
sairajzero
a66c2d91c2 minor changes
-Renamed defaultDB propertyName in compactIDB
-Fixed error in writeDataMultiple comment
2020-05-14 03:52:39 +05:30
4eb9649622
Added new standard functions 2020-05-13 10:04:27 +05:30
sairajzero
32da4e28af Improved initDB
initDB also deletes objectstores on upgrade needed (version change)
2020-05-07 15:46:58 +05:30
sairajzero
489996c1b8 Improve clearCredentials
Clearing the private key, public key and floID from memory on clearCredentials
2020-05-06 19:56:31 +05:30
Sai Raj
1e6d2462af
Merge pull request #6 from sairajzero/master 2020-05-06 19:03:08 +05:30
sairajzero
d90e9f6ed4 Adding secure PrivateKey feature
floDapps.securePrivKey(pwd): replaces the stored private key with encrypted variant.
Changed made in startup function getCredentials to support securePrivateKey.

Improved and promisified clearCredentials.
2020-05-06 00:31:44 +05:30
sairajzero
0308af983f Adding clearData to CompactIDB
compactIDB.clearData clears all data in the given objectstore.
2020-05-02 18:48:02 +05:30
sairajzero
38f43d805d InitDB: add missing objectStores
InitDB now automatically adds the missing objectstore instead of rejecting
2020-05-02 18:10:47 +05:30
sairajzero
1954fc0782 Improved sendTxMultiple and writeDataMultiple
sendTxMultiple:
There are 2 modes (given send amount, preserve ratio)
- Given Send Amount: Uses the given send amount from each sender IDs. Pass the senderPrivKeys as object with amount to invoke this mode
eg. { privateKey1: sendAmt1, privateKey2: sendAmt2...}
- preserveRatio: The ratio of the balance of the senders are maintained. Pass the senderPrivKeys as array of private keys.
eg. [privatekey1, privatekey2....]
*Note: receivers must always be object of floIDs with receive amount.
eg. {receiverID1: receiveAmt1, receiver2: receiveAmt2...}

writeDataMultiple:
There are 2 modes (preserveRatio, equalContribution)
- preserveRatio: preserves the ratio of the balance of senders
- equalContribution: all senders contribute equal amount to the transaction
Note:
*senderPrivKey and receivers are arrays
eq. [privateKey1, privateKey2, ..] and [receiverID1, receiverID2...]
*sends default amount (floGlobals.sendAmt) to each receiver)
*last (4th) parameter is optional:
(default) true: invokes preserveRatio mode
false: invokes equalContibution mode
2020-04-26 01:04:12 +05:30
sairajzero
a569adcb74 Adding mergeUTXOs, sendTxMulti and writeDataMulti
mergeUTXOs: /merge all UTXOs of a given floID into a single UTXO

sendTxMulti: Send Tx from (and/or) to multiple floID

writeDataMulti: Write data into blockchain from (and/or) to multiple floID
2020-04-25 17:54:13 +05:30
sairajzero
0a6fb69349 Beautify the scripts 2020-04-23 21:16:54 +05:30
sairajzero
3d0c8883b7 Improved floCloudAPI
floCloudAPI now stores the lastCommit value of the objects via requestObjectData, resetObjectData, updateObjectData

resetObjectData and updateObjectData now takes the new and old value from floGlobals.appObjects and lastCommit respectively

Parameter changes:
resetObjectData: function(objectName, options = {})
updateObjectData: function(objectName, options = {})
2020-03-10 22:00:56 +05:30
sairajzero
8652959e54 floCrypto: errorHanding
errorHanding added to floCrypto.getPubKeyHex and floCrypto.getFloIDfromPubkeyHex
2020-03-04 03:45:50 +05:30
sairajzero
47ca6a802e moving onloadStartup to a seperate script tag 2020-02-16 02:38:51 +05:30
sairajzero
d6c4b4882e changing TEST_MODE adminID 2020-02-16 02:36:35 +05:30
sairajzero
86ea714139 adding manage subAdmin to floDapps
floDapps.manageSubAdmins() allows the user to add and/or remove subadmin list via blockchain
*Requires Admin Privatekey of the app
2020-02-16 02:34:58 +05:30
sairajzero
c3a51f44a7 bug fix 2020-02-06 14:56:12 +05:30