Commit Graph

137 Commits

Author SHA1 Message Date
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
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
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
a33e79a8d0
Update README.md 2020-06-23 20:35:41 +05:30
8e61606de7
Update README.md 2020-06-23 20:33:29 +05:30
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