Commit Graph
507 Commits
Author SHA1 Message Date
edouard bd6ecaeb28 Merge #298: gui: log off ledger_transport_hid
0e05ff5244 gui: change log_level of ledger_transport_hid (edouard)

Pull request description:

  ledger hid apdu exchanges were displayed in the log because of ledger_transport_hid crate.
  This commit removes these log entries.

ACKs for top commit:
  edouardparis:
    Self-ACK 0e05ff5244

Tree-SHA512: 3961e38dabfe850d10c9670dcb8e89c60bad4ee6267ff4ec93929901d32bd53ddbe0f328c18346297749921fd9e9dcc6ab46ba0aab4cc1476f530bbbb36540cd
2023-02-02 15:40:35 +01:00
edouard 94a2b72d96 Merge #305: Add patch to liana version
5e79c05c54 Add patch to liana version (edouard)

Pull request description:

  The struct will be imported by the gui which
  may need one day to increase the patch version number.

ACKs for top commit:
  darosior:
    ACK 5e79c05c54

Tree-SHA512: 8f129587c638107be31e9a1aa00387ba8d319338df1f3a1072386585901476dd677c85fa3fb8e7a985f11ea6cc2d5607279554ad5a2d651e2c14dda3842353a4
2023-02-02 15:38:17 +01:00
edouard 0e05ff5244 gui: change log_level of ledger_transport_hid
ledger_transport_hid logs should not appear if the log_level is the default
`info` level.
2023-02-02 15:01:49 +01:00
edouard 5e79c05c54 Add patch to liana version
The struct will be imported by the gui which
may need one day to increase the patch version number.
2023-02-02 14:43:04 +01:00
Antoine Poinsot c4981fce5a Merge #302: contrib: update the Iced patch for reproducible builds
7a3eeb741e ci: test the GUI against it's current MSRV (Antoine Poinsot)
b2602e0204 contrib: use unpublished rustc 1.64 to build the GUI in Guix (Antoine Poinsot)
0a1c04db36 contrib: fixup patching in Guix build script (Antoine Poinsot)
3f49366b86 contrib: update the Iced patch for reproducible builds (Antoine Poinsot)

Pull request description:

  The Iced dependency was updated, and the patch wasn't valid anymore.

ACKs for top commit:
  darosior:
    ACK 7a3eeb741e -- tested a reproducible build with this.

Tree-SHA512: 4e79821f24d9be8b5b2db5f415372f6a0f54ebff616d6335f38569ff047786c3e38b3f34e9f85b5141451af13f86651e827d176f01b4f51d12dd4dcc69beb434
2023-02-02 14:35:10 +01:00
edouard ada2d010c9 Merge #289: Gui multisig
ca39b15edd installer: generate multiple xpubs in participate step (edouard)
445ad733fb Add signatures information to spend (edouard)
bf1e9e4b80 gui: new module settings (edouard)
689f19a4f2 Edit key name in installer (edouard)
bcd223f3fb Add sigs number and threshold to spend list view (edouard)
1f3399bd0f Add PartialSpendInfo to SpendTx model (edouard)
9a1cda2f5e Use spend state in recovery panel (edouard)
a2ac34e6b0 installer: Participate in a new wallet section (edouard)
dfc10eba61 Add multisig wallet creation in installer (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK ca39b15edd

Tree-SHA512: 67898dd5cc9ddfe135ddd2e57c6f3d6a6a10cf63211fe44c35e36cd182d4023cdefb8b15d2bd07290d83d631e360b20114b60e85728f9bbdc8c0e0d16b37f746
2023-02-02 12:56:42 +01:00
edouard ca39b15edd installer: generate multiple xpubs in participate step 2023-02-02 12:23:48 +01:00
edouard 445ad733fb Add signatures information to spend 2023-02-02 12:23:48 +01:00
edouard bf1e9e4b80 gui: new module settings 2023-02-02 12:23:48 +01:00
Antoine Poinsot 7a3eeb741e ci: test the GUI against it's current MSRV
To make sure we don't break it unintentionally.
2023-02-02 12:16:40 +01:00
Antoine Poinsot b2602e0204 contrib: use unpublished rustc 1.64 to build the GUI in Guix 2023-02-02 12:14:31 +01:00
Antoine Poinsot 0a1c04db36 contrib: fixup patching in Guix build script 2023-02-02 12:01:11 +01:00
Antoine Poinsot 3f49366b86 contrib: update the Iced patch for reproducible builds
The Iced dependency was updated, and the patch wasn't valid anymore.
2023-02-02 12:00:30 +01:00
Antoine Poinsot 9510e4e069 Merge #301: contrib: also patchelf the 'liana-cli' binary
81aa0c7d8e contrib: also patchelf the 'liana-cli' binary (Antoine Poinsot)

Pull request description:

  Fixes #271.

ACKs for top commit:
  darosior:
    self-ACK 81aa0c7d8e -- tested manually.

Tree-SHA512: a5f807e9d482e633b0c4b6ace4bb3d9ea522f2f0ebc9152b497f5576cbe076eedff163d292e9162b42d359d553e5b473de28e152088393d4913c4a0e8e0e4ead
2023-02-02 11:59:36 +01:00
edouard 689f19a4f2 Edit key name in installer 2023-02-02 11:01:19 +01:00
edouard bcd223f3fb Add sigs number and threshold to spend list view 2023-02-02 11:01:19 +01:00
edouard 1f3399bd0f Add PartialSpendInfo to SpendTx model 2023-02-02 11:01:19 +01:00
edouard 9a1cda2f5e Use spend state in recovery panel 2023-02-02 11:01:19 +01:00
edouard a2ac34e6b0 installer: Participate in a new wallet section 2023-02-02 11:01:19 +01:00
edouard dfc10eba61 Add multisig wallet creation in installer 2023-02-02 11:01:19 +01:00
Antoine Poinsot f433002e91 Merge #300: descriptors: require that an origin be set for the keys.
1cd61c9236 descriptors: require that an origin be set for the keys. (Antoine Poinsot)

Pull request description:

  It would be possible for users to create a descriptor with xpubs without an origin set. In fact, not many are used to origins and it's a very likely mistake. Signers need this information in order to be able to sign. So they could potentially create a wallet and potentially never be able to sign for one or multiple keys.

  Fix this by requiring an origin for all keys in the descriptor.

  Fixes #290.

ACKs for top commit:
  edouardparis:
    ACK 1cd61c9236

Tree-SHA512: fb17f2fb11a467289cb942b2df2a6331d03d52805ab02bf39eeb1f3086d4110d9e3cea3f12e97b0822af8879b483eb51b02eb17b70595a0b199e5dcbbb7229dd
2023-02-01 14:51:30 +01:00
Antoine Poinsot 81aa0c7d8e contrib: also patchelf the 'liana-cli' binary 2023-02-01 14:49:27 +01:00
Antoine Poinsot 1cd61c9236 descriptors: require that an origin be set for the keys.
It would be possible for users to create a descriptor with xpubs without
an origin set. In fact, not many are used to origins and it's a very
likely mistake. Signers need this information in order to be able to
sign. So they could potentially create a wallet and potentially never be
able to sign for one or multiple keys.

Fix this by requiring an origin for all keys in the descriptor.
2023-02-01 13:54:18 +01:00
Antoine Poinsot 46de2e07a8 Merge #282: Multisig support
3ea85fa950 descriptor: introduce a helper to analyze a PSBT spending Liana coins (Antoine Poinsot)
aac330ca65 descriptors: rename DescCreationError in a general desc-related error (Antoine Poinsot)
9290596823 qa: test using lianad with a multisig descriptor (Antoine Poinsot)
3c82173f46 qa: abstract the signer from the Lianad class (Antoine Poinsot)
e22e30dc8d descriptors: support Multisig in both the primary and recovery paths (Antoine Poinsot)

Pull request description:

  This permits the creation of a Liana descriptor containing a multisig in either of the two spending paths. The multisig is currently restricted at creation time to be a CHECKUMULTISIG-like multisig (k-of-n with n<20). See the linked issue for rationale.

  Closes https://github.com/wizardsardine/liana/issues/53.

ACKs for top commit:
  edouardparis:
    ACK 3ea85fa950

Tree-SHA512: b95402b4483e9b282680288b6515049c3ab7ac0debe7659b39768e4b85de8e4b3d6000a2de8b633c47f7f7db49593a23853028f481a09fc13f3d9d574f7cca51
2023-01-31 15:34:54 +01:00
edouard df2aacd082 Merge #296: Gui: text and layout of recovery screen fix #265
6c375ad06d Gui: text and layout of recovery screen fix #265 (Trigger)

Pull request description:

  Fix issue #265 + small UX improvements.

  I rollbacked _rustfmt_ @edouardparis can you see if it makes ~100changes on your side too ?

ACKs for top commit:
  edouardparis:
    ACK 6c375ad06d

Tree-SHA512: a75b4e64867c49fa1b34c32d2ba05ea5b4715933ad71ec8b2b5848f02dc2d138083e8fdf84d6875f552f55f1b3c48d8ff1b726a1c919575d6670bda420cb64ef
2023-01-30 11:25:27 +01:00
Antoine Poinsot 3ea85fa950 descriptor: introduce a helper to analyze a PSBT spending Liana coins 2023-01-26 21:26:29 +01:00
Trigger 6c375ad06d Gui: text and layout of recovery screen fix #265 2023-01-26 15:26:26 +01:00
Antoine Poinsot aac330ca65 descriptors: rename DescCreationError in a general desc-related error 2023-01-24 19:38:35 +01:00
Antoine Poinsot 9290596823 qa: test using lianad with a multisig descriptor 2023-01-24 19:38:35 +01:00
Antoine Poinsot 3c82173f46 qa: abstract the signer from the Lianad class
That's prep work to introduce a multisig
2023-01-24 19:38:34 +01:00
Antoine Poinsot e22e30dc8d descriptors: support Multisig in both the primary and recovery paths
We only allow to create "legacy" multisigs for now (that is, what fits
in a CHECKMULTISIG, ie k-of-n with n<=20). See
https://github.com/wizardsardine/liana/issues/53 for discussions around
this.

We are a bit more laxist on parsing, where any miniscript that
corresponds to a multisig policy will be accepted.

Note this makes the helper inferring the CSV value from semantic policy
incorrect, but this is fix in a later commit as part of a complete
refactor of this logic.
2023-01-24 19:38:34 +01:00
Antoine Poinsot 817c924aa3 Merge #295: doc: add a document about signing devices and specifically the Ledger app
a2c584f603 doc: add a document about signing devices and specifically the Ledger app (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  edouardparis:
    ACK a2c584f603

Tree-SHA512: 2bedc0639094833b470236bacf19d8b93d9a9f75cd692e20363505929f01f8c233a8569e2ca50ddc92fc33494ec4f76750f46e9ecd86f5cd711fc50eff210f8e
2023-01-23 20:05:32 +01:00
Antoine Poinsot a2c584f603 doc: add a document about signing devices and specifically the Ledger app 2023-01-23 17:42:20 +01:00
edouard 2985cbcba0 Merge #294: gui: store descriptor in wallet module
b177f190d1 gui: store descriptor in wallet module (edouard)

Pull request description:

  A new module wallet is introduced that contains the main_descriptor retrieved from `getinfo`.
  It removes the requirement for the `Daemon` trait to provide the demon config in the  other components of the application.
  Actually BitcoindSettings cannot be edited if the gui is connected to an external daemon, this PR just remove the display of the Bitcoind Settings section.

ACKs for top commit:
  edouardparis:
    Self-ACK b177f190d1

Tree-SHA512: 1b5d00b9406a96d51e2b974d850322ea6046d8232fdd061d4e79ac7a8529c1459815fa022b5e35156664c27aedc0b08ad94d9cbf6984af09ee3c2bdd44ebe2f6
2023-01-20 10:45:15 +01:00
edouard b177f190d1 gui: store descriptor in wallet module
A new module wallet is introduced that
contains the main_descriptor.
2023-01-20 10:22:51 +01:00
edouard 22bd8326db Merge #287: Bump iced 0.7
b8f1704f38 bump iced v0.7 (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK b8f1704f38

Tree-SHA512: f701719d96332b4c73b4c700041b3ca6e37ac23437dbfd7f38bce34c621d5ebb91a0db5cd6442877be856a1d289adb0a669faba8e8b40e88f3764961c88dd05b
2023-01-17 10:12:06 +01:00
edouard b8f1704f38 bump iced v0.7
should_exit method is replaced for the
iced::window::close() command at the main.rs
level. iced_native::Event message handling
is not anymore required in the sub states of
the iced application.
2023-01-16 18:51:53 +01:00
edouard f3b9a26b95 Merge #285: gui: order coins list in coins panel
d81c22767c gui: order coins list in coins panel (edouard)

Pull request description:

  close #193

ACKs for top commit:
  edouardparis:
    Self-ACK d81c22767c

Tree-SHA512: 9ae179b38aaea7b5e74f071b9f7788996ae76de858f81be61169efcb75a4507d1245d210715b829cd2fe4151cd519a68bb2d75d422df9a98ff2b4a9559baf013
2023-01-13 16:40:26 +01:00
edouard d81c22767c gui: order coins list in coins panel
close #193
2023-01-13 11:57:15 +01:00
edouard 5fad2c54b4 Merge #280: gui: display amount with sats in bold
ca096c71b5 gui: display amount with sats in bold (edouard)

Pull request description:

  ![2023-01-12T09:40:35,488663454+01:00](https://user-images.githubusercontent.com/6933020/212029918-1d19aac1-dd3b-47bc-90cd-2722d75c95a3.png)

ACKs for top commit:
  edouardparis:
    Self-ACK ca096c71b5

Tree-SHA512: 589095fe104e6354cb269795f1e6c2c34d85f49a068fa222e802d31f3c7fe8381ee915bdf6c929b5081c58a8b2c1ee133ab711b84d261a3fa9000ae223207bd4
2023-01-13 10:56:03 +01:00
edouard ca096c71b5 gui: display amount with sats in bold 2023-01-12 16:56:06 +01:00
edouard 80fb0ecb01 Merge #276: gui: import and update a spend draft
9921bcadd5 Add update psbt action to spend tx panel (edouard)
c4ccbf0113 gui: import a spend draft (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 9921bcadd5

Tree-SHA512: 11acdc097aafef1ad6b4bc824afbf6d1000b000b48596e60642152ec53fc03927585d24a01e78496cde6e2b356ba75f32d7b796c3d48e87b20db1629660d0839
2023-01-11 16:22:18 +01:00
edouard 9921bcadd5 Add update psbt action to spend tx panel 2023-01-10 12:44:21 +01:00
edouard c4ccbf0113 gui: import a spend draft 2023-01-10 11:13:30 +01:00
edouard ae331c7aec Merge #279: gui: fix spend creation steps
afc4636ad9 Forbid next step if amount sent > available amount (edouard)
3eddedd7a8 Reload amount left to select in choose coins step (edouard)
86896c8223 Check output amount superior to dust value (edouard)
ecd35d2bd1 Add available balance to choose recipient step (edouard)

Pull request description:

  close #195
  close #237
  close #196

ACKs for top commit:
  edouardparis:
    Self-ACK afc4636ad9

Tree-SHA512: 1f3e6703e3f01a5496f890fe8e8104693ab58f74510f07593b65dead7e1629f91753c1b169a2c0d481fc14d85136cbbcb3076057c9535f3afd93f290ac580692
2023-01-10 10:44:13 +01:00
edouard afc4636ad9 Forbid next step if amount sent > available amount 2023-01-09 14:46:30 +01:00
edouard 3eddedd7a8 Reload amount left to select in choose coins step
close #196
2023-01-09 14:42:33 +01:00
edouard 86896c8223 Check output amount superior to dust value
close #237
2023-01-09 11:41:43 +01:00
edouard ecd35d2bd1 Add available balance to choose recipient step 2023-01-09 11:01:23 +01:00
edouard 683294da1e Merge #275: gui: add modal widget and change spend actions
bde519fa7b Integrate modal component in spend tx actions (edouard)
7ffde7381b ui: add modal component (edouard)

Pull request description:

  based on #274
  close #198
  close #171
  close #235

ACKs for top commit:
  edouardparis:
    Self-ACK bde519fa7b

Tree-SHA512: 44be8ca11676e64a31b08339cfc2979f3427ca586c391e603aada8d8018c283253a0ee6558ecbfc978240845d3a1c57249f35da2e1f709b12e06a999cbc7753b
2023-01-03 15:29:34 +01:00