Commit Graph

536 Commits

Author SHA1 Message Date
sairaj mote
851c3453ec Added option to check FLO and token balances 2023-04-10 18:51:26 +05:30
sairaj mote
c1d9a4e730 Bug fix 2023-04-09 22:14:10 +05:30
sairaj mote
326d6f8044 UX improvement
-- It is no longer required to enter the sender's FLO address, only sender's private key is required
2023-04-09 20:48:11 +05:30
sairaj mote
d8f782b128 Bug fixes 2023-04-05 02:14:42 +05:30
sairaj mote
a8f6d9d4c7 Bug fix and code refactoring 2023-03-30 02:03:55 +05:30
sairaj mote
002a4d4dff grammatical error fix 2023-03-23 18:48:46 +05:30
sairajzero
3643f310c2 floDapps v2.3.4: startUpOptions
Added startUpOptions
- cloud: (DEFAULT=true). set to false for app that doesnt require floCloudAPI module
- app_config: (DEFAULT=true). set to false for app that doesnt require configs from adminID (via blockchain)
2023-03-20 20:10:52 +05:30
sairajzero
0ab284b41b floBlockchainAPI v2.4.4
- Updated writeDataMultiple: use options (bool: preserveRatio, float: sendAmt)
- Updated default values to reduce flo spent during tx
2023-03-20 19:44:52 +05:30
sairaj mote
3f6c854dd6 Added minimum FLO when doing token transfer 2023-03-20 00:05:42 +05:30
sairaj mote
831b129cf8 Added better token transfer 2023-03-19 17:29:03 +05:30
sairaj mote
d0ec0ee79c Updating flosight links 2023-03-11 18:04:31 +05:30
sairaj mote
1e11731b10 code refactoring and UI bug fixes 2023-03-11 18:00:38 +05:30
sairajzero
b16473f982 floCrypto v2.3.6
- Added hashID(str): returns a floID based on the hash of given string
- Added rawToFloID(raw_bytes): return floID from the given raw_bytes (20 bytes)
2023-03-08 03:13:36 +05:30
sairaj mote
aeb3d4845d Merge branch 'master' of https://github.com/ranchimall/flowallet 2023-03-02 01:15:27 +05:30
sairaj mote
98e4e5097f Bug fixes 2023-03-02 01:15:11 +05:30
Sai Raj
17ee486948
Merge pull request #8 from sairajzero/master
Multisig utils and fixes
2023-02-25 15:18:38 +05:30
sairajzero
4078d24487 Update floBlockchainAPI.js 2023-02-25 15:16:51 +05:30
sairajzero
b88a713c80 Update floCrypto.js 2023-02-25 15:16:49 +05:30
sairajzero
ce4bdcd83c Update lib.js 2023-02-25 15:16:46 +05:30
Sai Raj
37408f3983
Merge pull request #19 from sairajzero/master
lib v1.4.2b: bug fix
2023-02-25 15:03:50 +05:30
sairajzero
2e24f024d1 lib v1.4.2b: bug fix
- Fixed: FLO multisig signing not working when redeemscript length is large
2023-02-25 15:01:13 +05:30
Sai Raj
948a58c901
Merge pull request #18 from sairajzero/master
testnet fixes
2023-02-24 18:51:13 +05:30
sairajzero
1a8e1abe45 Update index.html
Only for Testing purpose
- Added quick param: pass quick in url query to ignore onLoadStartup
- Added testnet param: pass testnet in url query to change blockchain to FLO_TEST (testnet FLO)
2023-02-24 18:49:22 +05:30
sairajzero
bf9e018883 lib v1.4.2a and floCrypto v2.3.5a
lib v1.4.2a
- Fixed multisig for testnet

floCrypto v2.3.5a
- Fixed: getMultisigAddress accepting requiredSignatures value greater than pubkeys array length (now it will return null instead)
2023-02-24 18:34:49 +05:30
Sai Raj
009b7e1a0d
Merge branch 'sairajzero:master' into master 2023-02-24 02:14:37 +05:30
Sai Raj
476b95c679
Create LICENCE 2023-02-24 02:12:46 +05:30
Sai Raj
ce2a0daaa5
Merge pull request #17 from sairajzero/master 2023-02-24 02:07:53 +05:30
sairajzero
9db998c176 floBlockchainAPI v2.4.3: utility fns
- Added parseTransaction: parse the given txhex
- Added Sat_to_FLO and FLO_to_Sat to .util
2023-02-24 00:46:00 +05:30
sairajzero
7b298ceb50 floBlockchainAPI v2.4.2: tx utility fns
- Added checkSigned: check if the tx is signed or not (if optional args is passed as false, returns a detailed array indicating if each input is signed or not)
- Added checkIfSameTx: check if the passed 2 tx are same or not (ie, input, output and flodata are same or not)
- Added transactionID: returns the transaction id of the tx hex
2023-02-24 00:05:18 +05:30
sairajzero
daec31c1ac btcOperator v1.1.2a: bug fix
- Fixed: checkIfSameTx loop in comparing outputs using incorrect length
2023-02-23 23:24:55 +05:30
sairajzero
09e306d312 floBlockchainAPI v2.4.1: Improvements and signTx
- Added createTx: create unsigned tx (resolves tx-hex )
- Updated createMultisigTx: resolve tx-hex instead of tx object
- Added signTx: (synchronized fn) sign the given tx (hex or object) with given private key and returns the signed txhex
2023-02-23 23:07:54 +05:30
sairajzero
24415b835c lib v1.4.2: (flo) bitjs.transaction deserialize
- pass tx_data (hex or byte array) to bitjs.transaction to deserialize the transaction
ie, `tx = bitjs.transaction(tx_data)`
- invoking without any parameter `bitjs.transaction()` will create an empty tx as before (no change)
2023-02-23 22:49:32 +05:30
sairajzero
e4fd63912c floCrypto v2.3.5: multisig address utils
- Added toMultisigFloID: converts given multisig address to FLO multisig ID

- Improved verifyPubKey: also support verifying multisig redeemScript for the multisig address

- Improved isSameAddr: supports multisig bech32
- Improved decodeAddress: supports multisig bech32
2023-02-23 02:49:42 +05:30
sairajzero
070d2198ba btcOperator v1.1.2: multisig utils
- Added decodeRedeemScript: decodes the given redeemScript and return {address, pubKeys, required}. (optional bech32; default=true. if true return bech32 address. if false returns legacy multisig address)

- Added convert.multisig2multisig: convert from one multisig address to another. (optional target_version; default=btc-multisig-version)
- Added convert.bech2multisig: converts multisig bech32 address to multisig address. (optional target_version; default=btc-multisig-version)

- Added encodeLegacy, decodeLegacy, encodeBech32, decodeBech32 to util
2023-02-23 02:13:31 +05:30
sairajzero
6288dc82d9 lib v1.4.1b: Minor fixes in coinjs multisig-addr
- pubkeys2MultisigAddressBech32: returns another value 'scripthash'
- Fixed multisigBech32Address: returning scripthash as redeemScript. (now returns both scripthash and redeemScript
2023-02-23 02:04:16 +05:30
Sai Raj
612098bc92
Merge pull request #7 from sairajzero/master
Support for FLO multisig
2023-02-20 17:20:27 +05:30
sairajzero
46e386c9ee Update stdop: FLO multisig 2023-02-20 17:18:29 +05:30
Sai Raj
6c8fe10453
Merge pull request #16 from sairajzero/master
support for FLO multisig address and transactions
2023-02-20 17:11:38 +05:30
sairajzero
9132d169d2 lib v1.4.1a: bug fix
- Fixed: bitjs.btrx.decodeRedeemScript not throwing Invalid RedeemScript error
2023-02-20 05:20:04 +05:30
sairajzero
a102f5225b floCrypto v2.3.4a: bug fix
- Fixed: verifyPrivKey incorrectly returning false when pubkey is lowercase. (pubkey hex is case-insensitive)
2023-02-20 05:02:43 +05:30
sairajzero
2e0846edc4 floBlockchainAPI v2.4.0: multisig tx
Changes:
- multisig addresses are accepted as receiver address in all send-tx fns
- multisig addresses are accepted in query fns
- sendTx: sender can be regular address only

Added 3 multisig transaction fns:
- createMultisigTx: creates unsigned tx for multisig sender
- sendMultisigTx: create signed multisig tx and broadcast it
- writeMultisigData: same as writeData(), but for multisig
2023-02-20 04:59:23 +05:30
sairajzero
dac87a8595 floCrypto v2.3.4: multisig address
- Added getMultisigAddress(pubkeys, required_sigs): returns a multisig address from given pubkey list and required signatures
- Added decodeRedeemScript (redeemScript): decodes the given redeemscript (of multisig)
- Updated validateFloID: now validates FLO regular and multisig address. optional argument regularOnly(default=false) if true validates only FLO regular address.
2023-02-20 03:10:15 +05:30
sairajzero
0031761a06 lib v1.4.1: Bitcoin.Address: FLO-multisig support
- Bitcoin.Address now supports multisg version
- new Bitcoin.Address (hex) will now assign the respective version when its regular or multisig address

- Added constants: Bitcoin.Address
  .standardVersion= 0x23
  .multisigVersion = 0x5e
  .testnetVersion = 0x73
2023-02-20 03:09:46 +05:30
sairajzero
1f670be893 lib v1.4.0: Support for FLO multisig address 2023-02-19 17:43:07 +05:30
sairajzero
7d31dec230 lib v1.3.3: Improvements to bitjs for flo
- Updated tx.addflodata: will now check if the data is valid or not
- Optimized tx.serialize: changed complex code for appending flodata to a simple one
- Added bitjs.strToBytes: converts string (ascii) to strToBytes
- Added bitjs.pubkeydecompress: decompresses the public key
- Added bitjs.verifySignature: verify the signature (of hash and pubkey)
2023-02-19 17:39:19 +05:30
sairaj mote
cc700b32e8 UI enhancements 2023-02-17 02:00:11 +05:30
sairaj mote
90a55854ef Fixed scroll to top not showing up on desktop view 2023-02-17 01:58:08 +05:30
sairaj mote
5dddaa626c larger screen specific enhancements 2023-02-17 01:48:55 +05:30
sairaj mote
6d7de287dd consistent FLO naming 2023-02-16 22:43:07 +05:30
sairaj mote
4b05084e5b app name change 2023-02-16 22:39:05 +05:30