Commit Graph

566 Commits

Author SHA1 Message Date
sairaj mote
0c40a15a31 fixed a typo 2022-07-26 17:07:02 +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
sairaj mote
6b7644ada4 UI tweaks 2022-07-25 22:43:25 +05:30
sairaj mote
a68191de3a minor UI tweaks 2022-07-25 20:13:30 +05:30
sairaj mote
37bf4fe12e minor UI fix 2022-07-25 18:29:38 +05:30
sairaj mote
01776fdc82 minor UX improvements 2022-07-25 16:17:55 +05:30
sairaj mote
528ec5a21e UI revamp 2022-07-24 23:43:40 +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
Sai Raj
151ea8f751
Update README.md 2022-07-01 21:55:45 +05:30
sairajzero
8158fc91d8 UI update
- Added: 'Convert' Tab/Panel
- Added: form for address conversion (BTC<->FLO)
- Moved: key conversion form to Convert tab
2022-06-28 02:44:26 +05:30
sairajzero
7d6df3d6dd cross-blockchain: address conversion
- convert address from one blockchain to another (target version required)
- Conversions: btc_api.convert
 . legacy2legacy
 . legacy2bech
 . bech2bech
 . bech2legacy
2022-06-28 02:41:04 +05:30
sairajzero
fd3f746a51 UI update
- Added: form for WIF conversion
- Added: Input fields for private-keys of senders in sendTx
- Added: feedback/result box for sendTx panel (txid or error is displayed)
2022-06-26 21:13:21 +05:30
sairajzero
349fcae37f cross-blockchain WIF conversion
- convert compressed WIF from one blockchain to another (target privkey prefix needed)
- btc_api.pubkey: return the same if pubkey is passed. (thus address, segwitAddress, bech32Address now accepts pubkey, privkey and wif)
- btc_api.address: accepts optional parameter 'prefix' to generate address for respective blockchain (Default: 0x00 BTC)
2022-06-26 19:13:53 +05:30
Sai Raj
334bf46fa1
Merge pull request #2 from ranchimall/dev
multi-inputs
2022-06-26 18:45:47 +05:30
sairajzero
c3f28423d3 un-commenting the broadcast in sendTx 2022-06-26 18:44:39 +05:30
sairajzero
22b5f58b23 Bug fix
- sendTx not signing properly when legacy is after bech32/segwit address (senders)
Solution used: sort privkey before signing the tx (legacy 1st then bech32/segwit)
2022-06-25 22:49:06 +05:30
sairajzero
315d0fd6e3 UI: multiple input-id (senders) 2022-06-22 04:15:21 +05:30
sairajzero
b28c0d86a2 Fixed: Sign-bug on multiple input-id
- now signing works for multiple input-ids for the following
  . all legacy
  . all segwit/bech32

- Adding change_addr optional parameter in sendTx (if entered sends the change to given address)
- ignore unconfirmed utxos
2022-06-22 03:15:48 +05:30
sairajzero
ee642839fb Multiple Input-IDs in sendTx
- Adding support for multiple input IDs in sendTx
- Pass array to senders/privKeys for multiple InputIDs (both arrays should have equal length)
- Pass array to receivers/amount for multipls outputIDs (both arrays should have equal length)
- Address-keys are verified for sender pairs
- Address, amounts are validated for receiver pairs
2022-06-21 19:27:00 +05:30
sairajzero
fb54b96221 Bug fix
- send tx not working when single receiver is entered (UI bug)
- View details UI: Aligned the addresses in view tx table
- sendTx: reject when total receiver amount is less than fee or zero
2022-06-20 21:09:54 +05:30
Sai Raj
9458f4855e
Adding RBF sequence 2022-06-19 14:41:17 +05:30
sairajzero
1e9cb164ad Multiple receivers in sendTx
- Can now send to more than one receiver
- receiverID, amount is replaced as receivers (object) format: {id1:amt1, id2:amt2}
- Updated UI for the same
2022-06-18 05:37:43 +05:30
sairajzero
44bd69c7c8 Adding Bootstrap-UI 2022-06-18 03:33:06 +05:30
sairajzero
fb914d2ae7 re-enabling segwit and bech32 in UI
- re-enabled segwit and bech32 address shown in generation and retrieval (signing issue fixed in prev commit)
- view address details: remove duplicate address shown in same tx
2022-06-17 04:11:56 +05:30
sairajzero
842006cfc9 Fixed segwit/bech32 signing issues
- Fixed segwit/bech32 signing (transaction  inputs)
- Added verifyKey: verify the private key for address
- sendTx: accepts privateKeyHex and WIF
- Fixed: change amount bug (due to float aggregation)
2022-06-17 04:08:42 +05:30
sairajzero
361c1752a7 Disabling segwit and bech32
- disabled segwit and bech32 address shown in generation and retrieval
(until broadcast issue if fixed for them)
2022-06-16 03:51:42 +05:30
sairajzero
520a97595a broadcast tx
- broadcast the rawtx via api (ajax)
- Check if the entered private key is WIF format of legacy address (sender)

UI update:
- View details: handle when tx has change sent back
- Change text-color to red when tx is unconfirmed
2022-06-15 03:26:37 +05:30
sairajzero
4186f085c7 Adding address formats
- Supported address formats: legacy, segwit, bech32
- View all address formats of key generation and retrieval
- View WIF of key generation
2022-06-14 21:29:22 +05:30
sairajzero
6a4c46ee74 view address-details
- check balance moved to address-details form
2022-06-10 03:42:36 +05:30
sairajzero
4dc6395b3a Adding base-UI
forms and functions for the following
- generate-address
- retrieve-address
- check-balance
- send-tx (backend not completed)
2022-06-10 02:35:25 +05:30
sairajzero
9175f9fb05 Adding btc_api module 2022-06-10 01:59:41 +05:30
sairajzero
f3ef411089 Adding libraries 2022-06-10 01:55:35 +05:30
sairajzero
a764587bc6 Initial commit 2022-06-10 01:51:05 +05:30
sairajzero
9435592c8b floTokenAPI v1.0.3b
- floGlobals.currency serves as getter and setter for DEFAULT.currency in tokenAPI module
2022-05-25 02:45:50 +05:30
sairajzero
29e20de25b floTokenAPI v1.0.3a
check if amount is not NaN before sendToken
2022-05-24 19:41:45 +05:30
sairajzero
960aa1f52d floBlockchainAPI v2.3.3
- If API is called when serverList is empty, reset the list and try again once
2022-05-24 02:25:44 +05:30
sairajzero
0683bf7318 floTokenAPI v1.0.3
- getAllTxs: get all transactions of the given floID and token
- util.parseTxData: parse the txData resolved by getTx and getAllTxs
2022-05-24 01:32:23 +05:30
sairajzero
5d7d3bdb53 floBlockchainAPI v2.3.2a
sendTx:
- check total balance before processing utxos
- reject "Insufficient FLO: Some UTXOs are unconfirmed" when balance is there but some utxo are used/unconfimed
2022-05-21 22:19:54 +05:30
sairajzero
8603cde17e Moving all defaults/containers to resp. modules
- Removed default values from floGlobals
- Default values are now in their respective modules
- The following properties of floGlobals can be use to override the default values of respective modules: apiURL, sendAmt, fee, tokenURL, currency, SNStorageID
- Default/current values can be obtained from each module with getter properties
- Some current values can be set with setter properties
- The containers for appObjects, generalData, lastVC are now in floCloudAPI module. Also automatically adds get/set properties for them in floGlobals. Thus can be accessed from floGlobals as before
2022-05-16 21:20:21 +05:30
sairajzero
99368151d5 Adding floTokenAPI
- Token Operator to send/receive tokens via blockchain using token system API

floBlockchainAPI v2.3.1
- Added options parameter to writeData . Options can have the following properties:
 . strict_utxo : passes strict_utxo parameter to sendTx (Default: true)
 . sendAmt : amount of FLO to send (Default: floGlobals.sendAmt)
2022-05-16 18:46:22 +05:30
sairajzero
94f90807f7 Update lib.js
- Added support when floGlobals is undefined
2022-04-03 20:15:58 +05:30
sairajzero
b34ef8ca93 Merge branch 'master' of https://github.com/sairajzero/Standard_Operations 2022-04-03 20:09:06 +05:30