Commit Graph

654 Commits

Author SHA1 Message Date
sairajzero
7b5a5e6bfe Bug fixes and improvements
floCrypto v2.3.3b
floCloudAPI v2.4.2d
floDapps v2.3.2d
2022-08-21 21:14:29 +05:30
sairajzero
016097bd0f Adding requests and responses
- Added support for requests and responses

- Listing requests and responses:
.list_request_sent
.list_request_received
.list_response_sent
.list_response_received
Note: the above fns accept options (as object). Available options: floID, type, completed (bool)

- Current available request types:
  1. pubKey
- function to request/respond pubKeys:
.request_pubKey(receiver, message = '')
.respond_pubKey(req_id, message = '')
2022-08-21 19:04:36 +05:30
sairajzero
8b6a7b768b Adding sendPipelineMessage
- sendPipelineMessage: sends message to the pipeline (can send to multisig pipeline too)
- when receiving tx_hex from multisig pipeline, store it in data.tx_hex instead of data.message
2022-08-18 00:47:52 +05:30
sairajzero
a98bf3c589 Improve resolved values for some multisig fns
- createTx resolved pipeline id
- signTx resolves an object {tx_hex, *txid}
- store the message type for multisig pipeline
- Added loadDataFromBlockchain to messenger init fn
- Adding pipeline list to getChatOrder
2022-08-18 00:25:54 +05:30
sairajzero
fcd64fe4d4 Multisig signTx improvement
- multisig.signTx no longer require tx_hex as argument.
- automatically get the latest available tx_hex from IDB (pipeline chat)
2022-08-16 22:03:18 +05:30
sairajzero
b8b58503f6 Adding disablePipeline
- Added disablePipeline(pipeID): disables the pipeline and stops its requests from cloud.
- Close btc_multisig pipeline when a tx is broadcasted into blockchain
- Changed all spread operators to standard alternatives
2022-08-16 21:30:48 +05:30
sairajzero
67386fd69f Update btcOperator.js
- Added checkIfSameTx(tx1, tx2): checks if the transactions is of the same
2022-08-16 20:39:49 +05:30
sairajzero
1bb6f7a280 Pipeline: bug fix
- Add pipeline when CREATE_PIPELINE message is received
- Fixed: 'User is not a part of this multisig' error shown incorrectly
- Fixed various minor bugs
- Added optional fee argument for multisig.createTx
2022-08-16 17:36:39 +05:30
sairajzero
5564b73299 update stdop 2022-08-16 17:31:35 +05:30
sairajzero
dc19a4e565 Bug fixes: floBlockchainAPI and lib.js 2022-08-16 17:30:46 +05:30
sairajzero
85daa0135c bug fix 2022-08-16 03:32:03 +05:30
sairajzero
a3ea303aab Update std_op 2022-08-16 03:26:07 +05:30
sairajzero
f0a4837222 btcOperator v1.0.7c
- Fixed: createTransaction not returning promise
- Fixed: script not correctly added for multisig inputs
- Fixed: signTx throwing syntax error
- Added checkSigned(tx, bool?): check if the tx is signed or not. (bool is optional, default=true, if true returns a boolean value, else returns a detailed array of input's length)

- Fixed minor bugs in lib.js
2022-08-16 03:24:55 +05:30
sairajzero
6e5cdbd820 floCrypto v2.3.3b
- Added floCrypto.tmpID: generates a random floID with no private key (use this only for one-time id)
- Added toFloID(address): returns equivalent floID (btc-segwit address NOT supported)
- Fixed bug: legacy addresses of length 33 not working in verifyPubKey and validateAddr
2022-08-16 03:11:24 +05:30
sairajzero
36a4067d67 bug fix 2022-08-16 00:37:38 +05:30
sairajzero
45878e6ebe Update floDapps.js
- myFloID, myPubKey, myPrivKey will now return undefined when user not logged in
2022-08-14 18:38:29 +05:30
sairajzero
e4f5d41ade Pipleline and multisig 2022-08-12 16:50:26 +05:30
sairajzero
d3bb38c91d Update stdop 2022-08-10 03:08:58 +05:30
sairajzero
98f1ba2f70 Update messenger.js
- Added: Create, fetch and list for multisig address
2022-08-10 03:06:26 +05:30
sairajzero
285136b1e9 Update messenger.js
- merge conflicts
2022-08-10 03:01:50 +05:30
sairajzero
91e6b82387 btcOperator v1.0.7b
- Added: signTx
- Added multiSigAddress
2022-08-10 02:58:36 +05:30
sairajzero
bc44405102 btcOperator v1.0.7a
- Adding auto fee calculation
- Optimized the code
- Fixed minor bugs
2022-08-09 03:19:56 +05:30
sairajzero
4244774635 btcOperator v1.0.7
- Added createTx: Create an unsigned tx (no privkey required) [segwit sender not supported for now as redeem-script needed]
- Added createMultiSigTx: Create an unsigned tx for multisig address
- Optimised sendTx to reuse code (no functional change)
2022-08-03 03:54:58 +05:30
sairajzero
9dd132b145 Update README.md 2022-07-28 02:45:56 +05:30
sairajzero
4bced4352d floDapps, floCloudAPI: retain blkchain id on login
floDapps login:
- login to btc address when btc private key is entered
- login to flo id when flo (or any other) private key is entered

floCloudAPI user:
- accept userID and private key for user set

Others:
- Fixed: minor bugs
2022-07-28 02:27:07 +05:30
sairajzero
f673d3f37a floCrypto v2.3.3a
floCrypto.verifyPubKey: verify public key of any blockchain address
- Parameters:
1. pubKeyHex - public key hex
2. address - blockchain address

floCrypto.getAddress: get address respective to the blockchain
- Parameters:
1. privateKeyHex - private key (WIF)
2. strict - (optional, default=false) if false returns floID when no match of privatekey prefix found.
2022-07-28 02:11:48 +05:30
sairaj mote
392f3a112b removed unnecessary dependency 2022-07-28 01:11:11 +05:30
sairajzero
2b8e77b5f7 Bug fixes
- floCrypto.validateAddr: bech default=true
- floCloudAPI: proxyID
- commented coinjs api vars
2022-07-26 15:16:22 +05:30
sairajzero
8a211be849 Adding btcOperator module 2022-07-24 20:33:45 +05:30
sairajzero
0526a1f29f floCloudAPI v2.4.2: cross-blockchain receiverID
- Accept any blockchain ID as receiverID and automatically convert it into floID
2022-07-24 02:34:02 +05:30
sairajzero
fa3d790c6c floDapps v2.3.2: lock privkey by default
- Removed the options for launchStartUp
- private-key is on lock mode by default
- Added utility functions that uses private-key without entering password in .user
  .sign(message): signs message
  .decrypt(data): decrypts ciphertext in asymmetric
  .encipher(message): encrypts message in symmetric
  .decipher(data): decrypts ciphertext in symmetric
2022-07-24 02:29:04 +05:30
sairajzero
0a74e393ed floCrypto v2.3.2: validate any address
floCrypto.validateAddr: validate any blockchain address
- Parameters:
1. address - address to validate
2. std - checks for legacy version (optional, default=true) (true: allow any, array: list of versions, value: one version only, false: allow none)
3. bech - checks for bech version (optional, default=false) (true: allow any, array: list of versions, value: one version only, false: allow none)

- For validating only floID, use floCrypto.validateFloID(floID)
2022-07-19 21:21:06 +05:30
sairajzero
fcc5f3ce4e Edit library to accept WIF of other versions 2022-07-17 17:04:03 +05:30
sairajzero
b80bd43313 floDapps, floCloudAPI: Secure private key
- Store AES-encrypted private key in memory. (exploring memory of browser will not have raw private key)
- floDapps lock/unlock (in user): locks or unlock the private key (ie, lock= Password required, unlock= password not required in returning private key)
- floDapps.launchStartUp now accepts options object
- to lock the private key on startup, pass {lock_key: true} in options objects of launchStartUp
2022-07-17 17:02:27 +05:30
sairajzero
5ab0bc36f0 Update floCrypto.js
- Removing explicit use of BigInteger in signing(/verify-sign) data
2022-07-16 03:32:44 +05:30
sairajzero
cfc36b80cd Secure private key using capsule 2022-07-16 03:30:03 +05:30
Sai Raj
80b4a8b9fe
Merge pull request #9 from ranchimall/master
Update README.md
2022-07-12 19:13:20 +05:30
sairaj mote
5e469d0afd minor UI tweaks 2022-07-04 15:35:50 +05:30
sairaj mote
20434dd075 bug fix 2022-07-04 00:30:22 +05:30
sairaj mote
b440e41b15 bug fixes 2022-07-03 22:20:16 +05:30
ranchimalldev
7e1be29439
Update README.md 2022-07-03 20:09:46 +05:30
ranchimalldev
c9c76b7297
Update README.md 2022-07-03 19:39:38 +05:30
Sai Raj
151ea8f751
Update README.md 2022-07-01 21:55:45 +05:30
sairaj mote
2ea8e97006 bug fixes 2022-07-01 15:33:13 +05:30
sairaj mote
b77ed83ed7 bug fixes 2022-07-01 15:23:34 +05:30
sairaj mote
d49ff94a10 added reset option to loading screen 2022-07-01 13:42:49 +05:30
sairaj mote
f103ab16ce bug fixes 2022-06-30 22:17:08 +05:30
sairaj mote
7abb09772c bug fixes 2022-06-30 21:39:13 +05:30
sairaj mote
37faa9b928 bug fixes 2022-06-30 19:10:55 +05:30
sairaj mote
464cf465b7 bug fixes and UX improvements 2022-06-30 01:15:23 +05:30