Commit Graph

654 Commits

Author SHA1 Message Date
sairajzero
09210c14c6 Update floCrypto.js 2023-02-24 00:52:07 +05:30
sairajzero
7daa5e4a2c Update lib.js 2023-02-24 00:52:04 +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
sairaj mote
57ef2ede72 Bug fixes 2023-02-23 00:43:03 +05:30
sairaj mote
d20381da36 Added transaction Fee suggestion 2023-02-22 01:44:57 +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
087ddd0ed8 better error handling 2023-02-16 20:35:25 +05:30
sairaj mote
f52bd3669a UI fixes 2023-02-14 19:39:28 +05:30
sairaj mote
08d5cf5007 Standardizing ad blocker warning 2023-02-14 00:13:20 +05:30
sairaj mote
7428f3bcf9 standardizing key generation 2023-02-13 23:26:31 +05:30
sairaj mote
db0b67e8a7 Added ad-blocker warning 2023-02-12 23:55:43 +05:30
sairajzero
450e193dad Reject messenger.init: cloud connection failed
- messenger.init() is now rejected when connection to cloud fails (ie, direct, group or pipeline connections)
2023-02-12 02:30:03 +05:30
sairaj mote
afd9b733cd Bug fixes and UX improvements 2023-02-09 20:45:21 +05:30
Sai Raj
837f4b4a6f
Merge pull request #15 from sairajzero/master 2023-02-08 19:23:28 +05:30
sairajzero
247c13f1f4 Update btcOperator.js 2023-01-31 02:17:31 +05:30
sairajzero
ca0d557d94 btcOperator v1.1.1: getTx.hex
- Added getTx.hex(txid): resolves the tx hex of the txid
- Update: api responses are checked for response.ok
- Fixed: getTx giving incorrect confirmation value for unconfirmed tx
2023-01-31 02:13:37 +05:30
sairajzero
c2a94e6246 btcOperator v1.1.0: updating API provider
updating API link to blockchain.info
2023-01-31 01:21:48 +05:30
sairaj mote
ddda233897 FIX: Request tab shows notification in real time 2023-01-30 23:41:17 +05:30
sairaj mote
dd3cd788a5 code refactoring 2023-01-24 23:08:23 +05:30
sairaj mote
54417a4de5 UI fixes 2023-01-19 02:40:30 +05:30
sairaj mote
a33b95af6a UI enhancements 2023-01-19 02:30:49 +05:30
sairaj mote
582ebc1aba Bug fixes
-- fixed mail not sent error
-- fixed notification dot not showing up for new message
2023-01-19 02:10:35 +05:30
sairaj mote
31b1d024d2 Bug fix: Contact name change not working properly 2023-01-12 19:49:50 +05:30
sairajzero
915214a2e5 Update stdops 2023-01-06 03:50:27 +05:30
sairajzero
50d3166357 Fix: backup not working 2023-01-06 03:48:10 +05:30
sairaj mote
c946caaca6 UI fixes 2022-12-30 19:14:22 +05:30
sairajzero
c2b836c069 Updating floSight URLs 2022-12-23 22:48:52 +05:30
sairaj mote
b760c1388b bug fix 2022-12-21 20:54:27 +05:30
sairaj mote
777c8280c8 Added option to label multisig addresses 2022-12-21 20:49:55 +05:30
sairaj mote
edc9718ff7 UX improvements 2022-12-20 05:42:06 +05:30
sairaj mote
8a50dbdf0f Feature addition and bug fixes
-- added multisig transaction details panel to transaction chat
2022-12-20 05:35:25 +05:30
sairaj mote
091e19c3a5 Bug fixes and feature addition
-- added option to accept public key request
2022-12-19 21:02:52 +05:30
sairajzero
cc4380d623 floDapps v2.3.3
- Added support: update cloud node URL
- Added support: trusted IDs (configured by adminID)
- Trusted IDs have permission to edit tag data
2022-12-18 03:44:04 +05:30
sairaj mote
2b0e0b1b3b bug fixes 2022-12-18 01:41:43 +05:30
sairajzero
2e6a35678a Update btcOperator.js 2022-12-17 00:54:07 +05:30
sairajzero
ea4d1f67d6 bug fix: btcOperator v1.0.14b (ignore dust-change) 2022-12-16 20:47:21 +05:30