267 Commits

Author SHA1 Message Date
edouard
0f760c68ad gui: clean static directory 2022-11-30 08:51:24 +01:00
edouard
27e170f659
Merge #130: Fix installer wording
59c12cd5844e19f296066465fd34a3be48e26f2e installer: wait process is done before next step (edouard)
0577b971b77c0691f0dbb948956eb7616c4c8614 installer: add progress information (edouard)
0365794f910833e400f2418e52b6259f3ccb9b22 installer: add final step summary (edouard)
437faef1af01d9952f5ed3156ce38d9964ba5efb Add learn more collapse to installer (edouard)
8348ad1afadc2e46994b364d595491cc327d4961 installer: add backup descriptor step (edouard)
b260ac420819cb41f8740fa12f65b3a79d69eed3 installer: keep refresh button to list hws (edouard)
92699c645b38f97bfcde35d30b83981335285bdf installer: create or import wallet (edouard)
c89b8d88f59f4dec556d083b6f39c8263279741c installer: rename network pick_list (edouard)

Pull request description:

  base on #129

ACKs for top commit:
  edouardparis:
    Self-ACK 59c12cd5844e19f296066465fd34a3be48e26f2e

Tree-SHA512: d8016b353b54a744ab69c4d7278f4c04aab18326d97293b1b145bb5c3a46633c4ebbc4ccd3291e88fb508f02d44137d82f88218ce936b4a221335b16be879ff6
2022-11-29 17:22:28 +01:00
edouard
59c12cd584 installer: wait process is done before next step 2022-11-29 17:00:03 +01:00
edouard
90dd1871c2
Merge #131: bump async-hwi 0.0.2
0a756747df102323fa86c1198820319ce1c2f27f bump async-hwi 0.0.2 (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Selg-ACK 0a756747df102323fa86c1198820319ce1c2f27f

Tree-SHA512: 8a5bdecaa03c72a54dbabb59d425fe0c3d6409246d10c9f63e8bfb3363b78e6c758687b852afe3ddb854398f7595cc7db9c868fe05659dd1c511acc9c86cce93
2022-11-29 15:44:55 +01:00
edouard
0577b971b7 installer: add progress information 2022-11-29 12:12:02 +01:00
edouard
0365794f91 installer: add final step summary 2022-11-29 12:12:02 +01:00
edouard
437faef1af Add learn more collapse to installer 2022-11-29 12:12:02 +01:00
edouard
8348ad1afa installer: add backup descriptor step 2022-11-29 12:12:02 +01:00
edouard
b260ac4208 installer: keep refresh button to list hws 2022-11-29 12:12:02 +01:00
edouard
92699c645b installer: create or import wallet 2022-11-29 12:12:02 +01:00
edouard
0a756747df bump async-hwi 0.0.2 2022-11-28 15:23:26 +01:00
edouard
c89b8d88f5 installer: rename network pick_list 2022-11-28 10:29:50 +01:00
edouard
7794ed12d0
Merge #129: Bump iced 0.5
6897f317d087e2320aeb51c982f09d862fe797a1 bump async-hwi (edouard)
083066900fd324dfa6339950aebba0d46714eb18 gui: silence winit logs (edouard)
ea7ab5e4f1d47d67dc28124daa0ec084b3913993 Reintroduce ui component: collapse (edouard)
de738105c0d630e2286888d9c63541eedbf01441 Bump iced 0.5 (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 6897f317d087e2320aeb51c982f09d862fe797a1

Tree-SHA512: 8c47e738e7de618a28d20802cbb338c6f74bb17fc4c473422076c528054efe07317f81bf4369acc8bf84494aaaffab62632c4114e8f4cf2f97cf2ab7ef60434b
2022-11-28 10:27:49 +01:00
edouard
6897f317d0 bump async-hwi 2022-11-28 09:54:33 +01:00
edouard
083066900f gui: silence winit logs 2022-11-28 09:44:47 +01:00
edouard
ea7ab5e4f1 Reintroduce ui component: collapse 2022-11-25 19:06:33 +01:00
edouard
de738105c0 Bump iced 0.5 2022-11-24 12:09:18 +01:00
edouard
60defd672c
Merge #127: fix gui: jsonrpc client
1cb633157365bf2931feb35b3a964118e484abbc fix gui: jsonrpc client (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 1cb633157365bf2931feb35b3a964118e484abbc

Tree-SHA512: e7b4cd20b728928d94e3290a9f7c44aa23f5a61b3b0145c4bb4f2a25f9efecaebc383f78b85c064bd894847a3e13899a61b96459878972553f239fb8e3517a44
2022-11-23 15:31:44 +01:00
edouard
1cb6331573 fix gui: jsonrpc client 2022-11-23 15:03:34 +01:00
Antoine Poinsot
ad8a034ed0
Merge #126: Spent coin detection fixes
5721ab0fdeb5927b4a53a90d4820e30d3dcfea6a qa: test spent coins are always marked as such (Antoine Poinsot)
478707df27f411c1ca983def07b6f804369a6e82 bitcoind: detect coins as spent even if they are unconfirmed (Antoine Poinsot)
8e7e46a52c74fbd2c14f3647e5395c5737153fb1 bitcoind: detect spent coins for send-to-self transactions (Antoine Poinsot)

Pull request description:

  There were a couple cases in which we would not detect a coin as spent:
  1. If the deposit transaction was still unconfirmed
  2. If the spend transaction did not contain any external output

  This comes with a functional test that will fail on master. It tests both above cases as well as many other.

  Fixes #125

ACKs for top commit:
  edouardparis:
    utACK 5721ab0fdeb5927b4a53a90d4820e30d3dcfea6a

Tree-SHA512: b05d3c3f7f4e9810346e5a86d4d789ab3dc2e1b5d6595e59bf140cb1c6d9c823ac3974ec89f1107e21e45711a8fe3e56dc20b9d094c965c92bb5640297baeea9
2022-11-23 12:25:03 +01:00
Antoine Poinsot
5721ab0fde
qa: test spent coins are always marked as such 2022-11-23 11:51:28 +01:00
Antoine Poinsot
478707df27
bitcoind: detect coins as spent even if they are unconfirmed 2022-11-23 11:51:28 +01:00
Antoine Poinsot
8e7e46a52c
bitcoind: detect spent coins for send-to-self transactions
We weren't specifying include_change therefore those were not part of
listsinceblock result and never detected as spent!
2022-11-23 11:51:27 +01:00
edouard
54e0feae2d
Merge #106: Add transaction history to home panel
7e96cdd4949c15723ce1a150a1cc02dd5a402622 Add transaction history to home panel (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 7e96cdd4949c15723ce1a150a1cc02dd5a402622

Tree-SHA512: 98802d141073683ee09efe9e79ad28f9daba2145fdddf395c1b1758dc5f1c5763b483e1ca3d8ff35ce508138cf23989d8d3ed30c7d5044d311614b9fbe476b00
2022-11-23 11:13:57 +01:00
edouard
7e96cdd494 Add transaction history to home panel 2022-11-23 10:43:41 +01:00
Antoine Poinsot
dc23f3667a
Merge #99: command: add listtransactions
c39cb07360e5d3a6f528d4b17f1e34fae0da550b qa: functional test for transaction listing commands (Antoine Poinsot)
1f06c4d4dc4a6c611231c2e95a1e464e038b2570 db: fix the list_txids query (Antoine Poinsot)
774f9695941757253ba34c9a61c09e70d4a3149f Add listtransaction command (edouard)
3cd709697b4c0f098b9938dc122ddf471659dbe9 Add listconfirmed command (edouard)

Pull request description:

ACKs for top commit:
  darosior:
    ACK c39cb07360e5d3a6f528d4b17f1e34fae0da550b

Tree-SHA512: b0e158bb10d0c6fa3fc6beb6e12ea081a8078116733f2407902a9433f1df1fc67b2ee2d73c15d2d5c3bd49ff797ae0aa0b5c68f0684ed22c87f94c318fa39673
2022-11-22 20:28:56 +01:00
Antoine Poinsot
c39cb07360 qa: functional test for transaction listing commands 2022-11-22 19:31:02 +01:00
Antoine Poinsot
1f06c4d4dc db: fix the list_txids query
We need to limit the number of *distinct* txids. Limiting the number of
results in the inner queries at all could lead to incorrect results
with regard to ordering too.

See https://github.com/revault/liana/pull/99#discussion_r1029619579.
2022-11-22 19:31:02 +01:00
edouard
774f969594 Add listtransaction command 2022-11-22 19:31:02 +01:00
edouard
3cd709697b Add listconfirmed command 2022-11-22 19:31:02 +01:00
edouard
39babf3a43
Merge #124: fix gui package dependency list
e09b71b5d8d5880754579590e008dc02954c40ca fix ci: gui dependencies (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK e09b71b5d8d5880754579590e008dc02954c40ca

Tree-SHA512: 49bcddc38a9f8646e621cbbf51b836809c5eab5fa5e037e9bc939c82ff896f1c345bb00ea2332a6829123e819fd51ba9f125aef93419148ee8a5a876ccc74c3d
2022-11-22 19:29:40 +01:00
edouard
e09b71b5d8 fix ci: gui dependencies 2022-11-22 18:44:35 +01:00
edouard
ce259cd59f
Merge #104: fix: doc/API.md
873a697ba4736024bbdc84da65ac06de003716cc fix: doc/API.md (edouard)

Pull request description:

ACKs for top commit:
  darosior:
    ACK 873a697ba4736024bbdc84da65ac06de003716cc

Tree-SHA512: 3daca5aecd9b2346e491cbb8a6e0a17e2d5b9392ac804ae091cffc39153dd70c30a0a0e7b624ec38b504ff503103c7d14752943281b50d7a55ab976b30bdad30
2022-11-19 15:28:26 +01:00
Antoine Poinsot
18771b62a8
Merge #103: README.md and CONTRIBUTING.md
b4f6bbd8ffa722c48725fc724ca6cb1a4cf0b116 Add a README, finally. (Antoine Poinsot)
2663d970c77c7c13da8f39c3059123ef231b1787 Add a CONTRIBUTING.md (Antoine Poinsot)
f5ff0fad362a20d97d4ccc7fc5926bbfab50ec3a daemon: 'revaultd' name usage leftovers (Antoine Poinsot)

Pull request description:

  Starting the documentation effort with those two main files. I'll address both a dedicated document about building the software and another dedicated document about recovering from descriptor backup in a follow-up.

ACKs for top commit:
  darosior:
    self-ACK b4f6bbd8ffa722c48725fc724ca6cb1a4cf0b116

Tree-SHA512: 58172527d6c09b718f9b15989fe976ceb4c20192bd8dfc7ee2cc9c683f8add19ef184869e1ab285c3d025b5ed6d69c6e9f3eaf5fc3f8e9a29ba632c0e3cae2d9
2022-11-19 12:24:36 +01:00
Antoine Poinsot
b4f6bbd8ff
Add a README, finally. 2022-11-19 12:15:12 +01:00
edouard
873a697ba4 fix: doc/API.md 2022-11-19 11:00:49 +01:00
edouard
1d3fe6a853
Merge #102: gui: change project and crate name for liana
ee466798bd30fe9de0bc0f447b5a2ebe32b4ade1 gui: change project and crate name for liana (edouard)

Pull request description:

  close #98

ACKs for top commit:
  edouardparis:
    Self-ACK ee466798bd30fe9de0bc0f447b5a2ebe32b4ade1

Tree-SHA512: 904c56b212821ef4d3d735f2cfd240b4ac5d3b1887a1335014dc007d438f84c6de04a1d2f3ef2abb579a473a210ee4b1606dbbc7175faf0a96e78f7896b18add
2022-11-19 10:54:47 +01:00
Antoine Poinsot
2663d970c7
Add a CONTRIBUTING.md
Based on revaultd's one
2022-11-18 18:33:08 +01:00
Antoine Poinsot
f5ff0fad36
daemon: 'revaultd' name usage leftovers 2022-11-18 18:33:07 +01:00
edouard
ee466798bd gui: change project and crate name for liana 2022-11-18 17:29:45 +01:00
edouard
72a7bbea4c
Merge #100: Fix spend creation
d541ca90e59f7890aa26373c8675278a3a559d5b Fix spend creation (edouard)
3e43a806cfa129e4c8449c4a43353290579fcd22 bump minisafe (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK d541ca90e59f7890aa26373c8675278a3a559d5b

Tree-SHA512: 6be37c5ea63c46d2e834444c58a5732e77e13a53d14c00912828d9ceb1daf89aaa6e6c770e400e61987d7bfe13dae5e5a6cab79f2a51cbea6d0410058dde57ed
2022-11-18 10:29:35 +01:00
Antoine Poinsot
9f4d6ba064
Merge #97: daemon: rename Minisafe to Liana
968a7d17a02bc776c38274fc9e61235163c22442 daemon: rename Minisafe to Liana (Antoine Poinsot)

Pull request description:

  We decided on a new name for this project. Farewell Minisafe, "not a Bitcoin vault".

  To avoid conflicts with ongoing work in the GUI i have only made the change on the daemon for now.

  Fixes #91

ACKs for top commit:
  edouardparis:
    utACK 968a7d17a02bc776c38274fc9e61235163c22442

Tree-SHA512: e0d9324423b650bf4c8ec3084fb0002b2eb9b29e028f6f7c7be2062c10cc8ea3a2c3186689700495a0bfbd5c7cb75b549fffa06604bdd182c589aad3bbf61e0d
2022-11-18 10:11:49 +01:00
edouard
d541ca90e5 Fix spend creation 2022-11-17 22:02:28 +01:00
edouard
3e43a806cf bump minisafe 2022-11-17 22:02:28 +01:00
Antoine Poinsot
968a7d17a0
daemon: rename Minisafe to Liana 2022-11-17 17:10:22 +01:00
Antoine Poinsot
25bbce8612
Merge #96: Some tweaks to the Spend transaction creation
4bd65213e2561453f7c1fee16acccdd128296406 commands: swap the outpoints and destinations arguments to createspend (Antoine Poinsot)
838daa0c93ad72adde9b5c502796f87571fb5efd commands: set the BIP32 derivation in PSBT for change outputs (Antoine Poinsot)
dbf17681a432791f58ef4cdbb3fb2ebfa4ba0742 commands: signal for opt-in RBF in Spend transactions (Antoine Poinsot)

Pull request description:

  It was missing a few things, see the linked issues for details.

  Fixes #90.
  Fixes #76.
  Fixes #33.

ACKs for top commit:
  darosior:
    self-ACK 4bd65213e2561453f7c1fee16acccdd128296406

Tree-SHA512: f7122d48afa764b68993df7e66043900408ec64aa9181a87495168476d424a19dbf6adac3885df7a0d0865f0c47b17faea246f4abcbd7c908baf26fc8d0d6269
2022-11-17 16:53:33 +01:00
Antoine Poinsot
4bd65213e2
commands: swap the outpoints and destinations arguments to createspend
The outpoints argument could eventually be made optional in order to
introduce some automated coin selection. So it makes more sense for it
to be after a required parameter, the destinations.
2022-11-17 15:15:22 +01:00
Antoine Poinsot
838daa0c93
commands: set the BIP32 derivation in PSBT for change outputs
So the signing devices (or even the GUI) can view them as such.
2022-11-17 15:01:34 +01:00
Antoine Poinsot
dbf17681a4
commands: signal for opt-in RBF in Spend transactions 2022-11-17 14:52:27 +01:00
Antoine Poinsot
3ce9d4f7ab
Merge #93: Derivation index update from the chain
94d8ea6d600479d00e08992aaf153e136e5198fa qa: test "next derivation index" update from onchain usage (Antoine Poinsot)
b31673de327bc968c4046267ef5d0433b80ddd7e poller: update our internal derivation index also from the chain (Antoine Poinsot)
42d2ffeec12edb22a789d92d8f83c8b535fc0477 db: more flexible interface for updating our next derivation indexes. (Antoine Poinsot)

Pull request description:

  Currently, we wouldn't update our "next derivation index" to derive receive/change addresses if we noticed an address from a higher derivation index was used onchain. See #81. This fixes it.

  Note that it can be tempting to set it with some leeway (for instance if we notice index `n` was used, we set our next derivation index to `n + 10`) since other wallets probably have generated addresses for more addresses than were actually used onchain.
  However, i think it could have cascading effects in a multisig situation: A would use `n`, B would set its to `n + 10` and use `n + 11`, C would set its to `n + 21` and use `n + 22`. This is clear that we could end up very far indeed down the derivation tree without having used most indexes.

  A functional test is included, demonstrating the behaviour after a rescan where we lost the database (and therefore knowledge of the previous "next derivation index"). It is in a separate commit to help reviewers attest it would fail on master and pass on this branch.

ACKs for top commit:
  darosior:
    self-ACK 94d8ea6d600479d00e08992aaf153e136e5198fa

Tree-SHA512: 67a44ac28dae391c23dd5143e9d560678e1928eddbfd2fc7ed721e02227151a8ea9571a867b6dd0e93f25ebe59adbdf846a8851c63a89144a818de870723b5da
2022-11-17 14:48:38 +01:00