- generalData now also stores sign and pubKey.
- renamed startup fn readSubAdminListFromAPI to readAppConfigFromAPI.
- readAppConfigFromAPI also loads settings from the IDB to floGlobals.
- 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.
- Improved generalData fetch (ie, non subAdmin users will not request generalData that are required only by subAdmins).
- Moved getTaskApplication to manage (as it is a subAdmin-only feature).
- Added applyForIntern feature to allow non-intern users to apply as intern.
- Added application status feature to allow subAdmins to coordinate among the applications. (setApplicationStatus and getApplicationStatus).
- Added getInternApplications to view the intern applications
- Improved getInternApplications and getTaskApplications to filter out processed (i.e, applications that have status set)
- Renamed putTaskDetails to editTaskDetails