Commit Graph

304 Commits

Author SHA1 Message Date
sairajzero
b5532444fb floCloudAPI_v2.0.2d | floDapps_v2.0.1b
floCloudAPI_v2.0.2d
- Fixed bug: syntax error in requestObjectData
 - Added closeRequest: closes the active live requests

floDapps_v2.0.1b
- minor improvements and alignment.
- Fixed: deleteAppData deletes the lastTx data of the adminID.
2021-01-02 19:11:15 +05:30
sairajzero
1a57f74704 Alignment
- Moving onLoadStartUp script tag to head
2020-12-31 23:20:51 +05:30
Sai Raj
634aa5aebd
Merge pull request #13 from sairajzero/master 2020-12-19 22:35:42 +05:30
sairajzero
fc747dae83 floBlockchainAPI v2.0.1 | floCloudAPI v2.0.2c
- Added: getTx(txid) to floBlockchainAPI. resolves the tx data of the given txid.

-
2020-12-19 22:26:00 +05:30
sairajzero
30c13ae12f compactIDB v2.0.1
- Fixed bug: database upgrade not working correctly when upgrading existing db.
- Added upgradeDB as a standalone function. (also called by initDB if upgrade is required)
- Added getDBversion: resolves the version of the db
- Improved openDB: rejects if the db is not found
2020-12-15 05:02:50 +05:30
sairajzero
b0e15d1a7f Minor bug fixes 2020-12-09 03:49:32 +05:30
Sai Raj
cafd76655e
Merge pull request #12 from sairajzero/master 2020-11-30 03:31:31 +05:30
sairajzero
99ce43c089 floCloudAPI_v2.0.2a | floDapps_v2.0.1
floCloudAPI v2.0.2a
- deleteApplicationData accepts options instead of application (to match other functions).
- Added editApplicationData
- sendGeneralData not longer stores data in IDB.
- fixed bug: Infinite callback loop in requestGeneralData and requestObjectData

floDapps v2.0.1
- added mid startup support
- added deleteUserData and deleteAppData
- replaced reactor startup logger with setCustomStartupLogger
2020-11-30 03:29:06 +05:30
Sai Raj
5a1aff68ce
Merge pull request #11 from sairajzero/master 2020-10-15 01:46:04 +05:30
Sai Raj
a650ed17a8
Merge pull request #6 from sairajzero/dev
version update (Major changes)
2020-10-15 01:43:29 +05:30
Sai Raj
50594b6bd9
Merge pull request #5 from ranchimall/master 2020-10-15 01:41:32 +05:30
sairajzero
f5f29cb620 bug fix
- Changed SNStorageID
- fixed bug: supernodes not read from blockchain
- generalData incorrectly stored
2020-10-15 01:33:19 +05:30
sairajzero
a8218630ea Contacts feature
- spliting IDB into 3 parts:
1. floDapps - common DB for all apps across all users
2. userDB - common DB for all apps for specific user floID
3. appDB - app DB across all users

- contacts, pubKeys can be stored by users in userDB
- users can send direct message across all apps using floDapps.sendMessage
- syncData can be used to sync user data between devices
2020-10-12 02:38:28 +05:30
sairajzero
cc2d4f8248 Mark feature 2020-09-27 03:21:43 +05:30
sairajzero
65f16fa14b Bug fixes
minor bug fixes
2020-09-20 13:11:07 +05:30
sairajzero
4e9af8060a stdop Improvement
STD_OP

floGlobals
- combined vectorClock (for objectData) and generalVC (for generalData) into lastVC.

init
- Bug fixed: floData of 16 character dropped by floSight.

floCrypto
- Improved getFloIDfromPubkeyHex to getFloID: return floID from either pubKey or privKey.
- verifyPrivKey, validateAddr return false if arguments are empty.

floSupernode
- Removed floSupernode module.
- Kbucket submodule moved to floCloudAPI

Kbucket (subModule)
- Improved KBucket module
- Kbucket cyclic array (SNCO) is formed (w.r.t. distance) when kBucket is launched
- nextNode, prevNode are determined by SNCO

compactIDB
- Improved searchData (accepts option parameter instead of patternEval)
	.options (lowerKey, upperKey, atKey, patternEval, lastOnly)

floCloudAPI
- Improved data signature during sending.
	.current format ( ["receiverID", "time", "application", "type", "message", "comment"])
- Adding live request:
	.requesting data now accepts option callback
	.when callback option is passed, the request becomes live request
	.ie, cloud automatically forwards new data received by the requested floID
	.callback function is called with new data is received
	.callback supported functions: requestApplicationData, requestGeneralData, requestObjectData
- Adding feature to delete from cloud.
	.data received can now be deleted from cloud
	.signature is required for verification (thus requires privKey logged in)
	.can only delete own data (received only)

floDapps
- merged manageSubAdmins and setApplicationSettings into manageAppConfig(adminPrivKey, addList, rmList, settings)
- Improved getNextGeneralData
	.getNextGeneralData can now sub-categorize comment (even when generalData is request for all comment)
	.getNextGeneralData now keeps a track pointer of previously called. [vectorClock (ie, second parameter) must be null, default is null]
2020-09-19 03:39:19 +05:30
sairaj mote
2c58bd662a
Added link for different sections 2020-09-17 13:59:05 +05:30
Sai Raj
8078a83122
Merge pull request #10 from sairajzero/master 2020-08-25 18:05:57 +05:30
sairajzero
9b7dd8214d bug fix
- Fixed: Invalid private key on signing in error not working correctly and cause other bugs
2020-08-25 18:03:12 +05:30
Sai Raj
49d4377900
Merge pull request #9 from sairajzero/master 2020-08-20 17:53:05 +05:30
sairajzero
5e8f0dddb5 Update README.md 2020-08-07 04:34:14 +05:30
sairajzero
fe1ce64562 minor change
-  floBlockchainAPI's readData: changing default limit option value from 1000 to no limit
2020-08-07 04:34:03 +05:30
sairajzero
58bee2e9db minor bug fix
- floBlockchainAPI.readData's option pattern ll now test for JSON key matching the pattern
- startUp fn readAppConfigFromAPI checks if the content is a object or not to prevent errors
2020-08-07 04:19:38 +05:30
sairajzero
ceecfab2b7 Merge branch 'master' of https://github.com/sairajzero/Standard_Operations 2020-08-05 14:05:37 +05:30
sairajzero
c3607aa58f Update README.md 2020-08-05 13:56:12 +05:30
Sai Raj
d4ce67033d
Merge pull request #4 from ranchimall/master 2020-08-05 13:51:17 +05:30
5b93464f42
Update README.md 2020-08-05 13:49:07 +05:30
sairajzero
f6a07b20ba Minor Improvements
- generalData now also stores sign and pubKey.
- renamed startup fn readSubAdminListFromAPI to readAppConfigFromAPI.
- readAppConfigFromAPI also loads settings from the IDB to floGlobals.
2020-08-01 18:38:10 +05:30
sairajzero
62c190567e Adding settings and encrypted generalData feature
- floDapps now reads 'settings' from blockchain
- improved manageSubAdmins: doesnot send tx if addList and rmList are empty (i.e, no changes)
- setApplicationSettings: used to set settings for the application.
Note: existing settings are overwritten (ie, not appended) if same key is used.
- sendGeneralData now supports a new option (encrypt): Encrypts the message before sending.
Note: option value can be boolean true or pubKey of a floID. Passing true will encrypt the data using the default encryptionKey (default 'encryptionKey' must be set in settings).
- getNextGeneralData now supports a new option (decrypt): Decrypts the message if possible.
Note: option value can be true, privateKey or array of privateKeys.
If boolean true is passed, decrypts using myPrivKey (loggedIn privateKey).
If privateKey (string) is passed, decrypts using the given privateKey.
If array of privateKeys are passed, decrypts the message using the suitable key from the given array. (for example, say messages A, B, C are encrypted for keys X, Y, Z respectively, passing [X, Z] will decrypt messages A and C.
2020-07-31 22:24:27 +05:30
e2d9adde07
Update README.md 2020-07-05 23:16:52 +05:30
9d909ebc8c
Update README.md 2020-07-05 23:14:32 +05:30
2edf26228a
Update README.md 2020-07-05 22:26:22 +05:30
be52706a05
Update README.md 2020-07-05 22:16:52 +05:30
9be2c5103d
Update README.md 2020-07-05 19:03:29 +05:30
f13e87dbf9
Update README.md 2020-07-05 18:18:11 +05:30
084aced9b7
Update README.md 2020-07-05 18:15:34 +05:30
70f8cd95b1
Update README.md 2020-07-05 17:15:35 +05:30
e065f688af
Update README.md 2020-07-05 17:06:15 +05:30
6c55653f2a
Update README.md 2020-07-05 14:26:54 +05:30
0050648da2
Update README.md 2020-07-05 14:24:37 +05:30
120ebcf036
Update README.md 2020-07-05 14:21:28 +05:30
5216154940
Update README.md 2020-07-05 14:14:39 +05:30
8a6a4fb1d6
Update README.md 2020-07-05 14:06:27 +05:30
4818cc410a
Update README.md 2020-07-05 13:43:32 +05:30
ec0d420ca7
Update README.md 2020-07-05 13:36:14 +05:30
beebb5795a
Update README.md 2020-07-05 13:12:16 +05:30
39a09be7d9
Update README.md 2020-07-05 11:16:08 +05:30
01b5c5f490
Update README.md 2020-07-05 10:26:00 +05:30
b6affaf6ea
Update README.md 2020-07-05 10:23:00 +05:30
863e4f465d
Update README.md 2020-06-23 20:36:11 +05:30