diff --git a/README.md b/README.md index 17ff13a..3c47aa3 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ We are offering methods simplifying access to inbuilt browser database IndexedDB Last but not the least, we are also providing methods for simplying common operations for FLO based Distributed Application Development. # IMPORTANT -We have two versions of cloud: old cloud version is 2.0.x in floCloudAPI, and new cloud version is 2.1.x in floCloudAPI. Please check that the version in floCloudAPI is 2.1.x whenever you use floCloudAPI as we are deprecating version 2.0.x +We have two versions of cloud: old cloud version is 2.0.x in floCloudAPI, and new cloud version is >2.1.0 in floCloudAPI. Please check that the version in floCloudAPI is >2.1.0 whenever you use floCloudAPI as we are deprecating version 2.0.x # Background on FLO Distributed Applications @@ -208,6 +208,13 @@ In addition, we have these system variables outside FLO Globals but used globall 1. publickey_or_privateKey - public key or private key hex value * Returns : floID (string) +#### Calculate Address + floCrypto.getAddress(privateKey, *strict) +`getAddress` returns respective address from given private-key +1. privateKey - private key in WIF format +2. strict - boolean value (optional, default=false) (false: return flo-id if no prefix match is found) +* Returns : address (string) + #### Verify Private Key floCrypto.verifyPrivKey(privateKey, pubKey_floID, *isfloID) `verifyPrivKey` verify the private-key for the given public-key or flo-ID @@ -230,6 +237,13 @@ In addition, we have these system variables outside FLO Globals but used globall 1. floID - flo ID to validate * Returns : boolen (true or false) +#### Verify Public Key + floCrypto.verifyPubKey(publicKey, address) +`verifyPubKey` verify the public key for the given address (any blockchain) +1. publicKey - public key +2. address - address to verify +* Returns : boolen (true or false) + #### Data Encryption floCrypto.encryptData(data, publicKey) `encryptData` encrypts the given data using public-key