Commit Graph

21 Commits

Author SHA1 Message Date
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