2043 Commits

Author SHA1 Message Date
Michael Mallan
e4ae6dc368
descriptors: include segwit marker and flag 2024-11-15 13:44:31 +00:00
Michael Mallan
03a3230a67
descriptors: add method to get max tx weight
Errors in the weight calculation could be hidden when converting
to vbytes. This separate method will make it easier to spot any
such errors.
2024-11-15 13:44:28 +00:00
edouardparis
327f0ea665
Merge #1464: fix link logo in README.md
a8c3612d271c8a9e73010b04e6230e037e00d161 fix link logo in README.md (edouardparis)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK a8c3612d271c8a9e73010b04e6230e037e00d161

Tree-SHA512: 105bd63245db514f2dc1914762858d61d04d3130ebbb73bbca6ee3c4a33e90c2ea0143e1581e6c8e6a6bfb3cbe6d339170b537809802635d23aadb537239a049
2024-11-15 13:48:32 +01:00
edouardparis
a8c3612d27 fix link logo in README.md 2024-11-15 13:47:06 +01:00
edouardparis
89a4187a80
Merge #1448: Refac workspace to follow rust guidelines.
6175ca7b58324a19ba7d8309fac4f18e6a07c178 fix doc (edouardparis)
f32b6aa30dc68623361f7884111707edd0bf3b42 fix the reproducible build to include the workspace change (edouardparis)
8973ee0c7c7b8df37378dde3f1a73b2447147200 fix test not building on windows (edouardparis)
f28b40fe8df967364f2201e3bea84c081b18cac6 fix fuzz, build and tests (edouardparis)
2ab6e40c9399942e2ef756f63e07ff76fb1496b9 refac workspace: move files (edouardparis)

Pull request description:

  This PR clarifies the rust workspace with its members:
  - `liana`: The `lianad` and `liana-cli` crate
  - `liana-gui`: The gui crate to build the graphical interface
  - `liana-ui`: A crate to quickly iterate on a design system

  It allows to have coordination across crates easier, consistent build and shared dependency versions.
  As a result the build processes in the guix container and the macos container are way faster as the dependencies are built only once.

  The overall MSRV is changed for rust 1.71.1, which is the `liana-gui` MSRV.
  Only one rust version is used for all the crates.

  This PR is also a change of vision of the project. The liana daemon is not used as it is. It is too much cumbersome. It should be at the service of the future applications and for now at the service of the GUI.
  The security aspects of the project should be aware of what the end user is using and in reality it is the `liana-gui` binary.

ACKs for top commit:
  pythcoiner:
    ACK 6175ca7b58324a19ba7d8309fac4f18e6a07c178
  jp1ac4:
    ACK 6175ca7b58.

Tree-SHA512: 4b193ed92d3108672d785b28ed54ff95168d365f163235b72cd7e24a7023a7293853ddb458930fb4640d7b1c60a8965e1b38cc060a426474d50b29e2eec4a6d2
2024-11-15 13:45:09 +01:00
edouardparis
6175ca7b58 fix doc 2024-11-15 13:26:13 +01:00
edouardparis
f32b6aa30d fix the reproducible build to include the workspace change 2024-11-15 13:26:13 +01:00
edouardparis
8973ee0c7c fix test not building on windows 2024-11-15 13:26:13 +01:00
edouardparis
f28b40fe8d fix fuzz, build and tests 2024-11-15 13:26:13 +01:00
edouardparis
2ab6e40c93 refac workspace: move files 2024-11-15 13:26:13 +01:00
edouardparis
cfe653f631
Merge #1451: descriptors: fix max satisfaction weight for Taproot multisig primary path spends
6e74a96e12feb00fcf0f6974f56002c0356e0960 Revert "spend: add 10 sats to fee for 1 sat/vb txs" (Michael Mallan)
cf88aca3aee0fed9a817dd4946db7ad3c1b080a7 descriptors: fix satisfaction size for Taproot (Michael Mallan)
e9c699570669e9723bec47b1fcd6df66257a8128 qa: add threshold paramater for multisig descs (Michael Mallan)

Pull request description:

  This is a fix to #1371 and the related #1322.

  As per https://github.com/wizardsardine/liana/issues/1371#issuecomment-2446921093, this adds the varint length for the script and control block elements of a Taproot primary path spend.

  I think this is what caused #1322 and so I have reverted the change from #1323.

ACKs for top commit:
  edouardparis:
    utACK 6e74a96e12feb00fcf0f6974f56002c0356e0960

Tree-SHA512: 754e5c2186de853cde9006aeab7989141a4d363b9e3d8adb3f0264bcbca7e3b56a94822d434f6f7d8108e7c0e3023959fa407643e5868082f8981c5ce10b9a1e
2024-11-15 13:21:40 +01:00
edouardparis
b46efc6cf4
Merge #1457: Fix blockchain sync progress
439af752a57410f4667664a2d5de93ddb9fa705e Fix blockchain sync precision, add tests (thomas)

Pull request description:

  I've merged `roundup_progress` in `rounded_up_progress` since was in utils and was no longer used by any other method.
  I also added some tests to verify the precision's update but also for specific cases that we manage. By the way tests has been moved in the related file.

  Solves #907

ACKs for top commit:
  pythcoiner:
    ACK 439af75
  jp1ac4:
    Tested ACK 439af752a5.

Tree-SHA512: a87998d1e25c47d751dabc38f641f05f2544bf17cbdcf95d24e829a0aa9dd8ce2de3bdc72a52aced04ffd777412ca206641f914d9a083241d98ceea33d4c10cc
2024-11-13 13:36:53 +01:00
thomas
439af752a5 Fix blockchain sync precision, add tests 2024-11-13 11:15:58 +01:00
edouardparis
387f431c3b
Merge #1459: gui(installer): fix typo in remote backend description
eba3b616b90bdafb6bc21e2c404f85d251f9f947 gui(installer): fix typo in remote backend description (pythcoiner)

Pull request description:

  closes #1458

ACKs for top commit:
  edouardparis:
    ACK eba3b616b90bdafb6bc21e2c404f85d251f9f947

Tree-SHA512: 226d8c57ce5b8f72c31cc13f079486b53419d8ec345ba87cc1b2ab1a4afd5d02be35f7baae46329a433217c9352ccd73182686160c3dc17dc08186321fac4540
2024-11-13 10:09:23 +01:00
pythcoiner
eba3b616b9 gui(installer): fix typo in remote backend description 2024-11-13 01:45:51 +01:00
Michael Mallan
6e74a96e12
Revert "spend: add 10 sats to fee for 1 sat/vb txs"
This reverts commit 74a53baa39c409d8a39a27affc5ebac34128cb24.

I also removed the extra sats being added in the functional test.
2024-11-08 15:27:25 +00:00
Michael Mallan
cf88aca3ae
descriptors: fix satisfaction size for Taproot
This includes the sizes of the script and control block elements.
2024-11-08 15:27:23 +00:00
Michael Mallan
e9c6995706
qa: add threshold paramater for multisig descs 2024-11-08 15:26:36 +00:00
edouardparis
f3206f9dfa
Merge #1446: gui(installer): list wallets using secondary buttons
ef55e8f01e65f67faff5bd2f07c2c1302d562dd9 gui(installer): list wallets using secondary buttons (Michael Mallan)

Pull request description:

  This is to fix #1445:

  ![image](https://github.com/user-attachments/assets/007ec779-f5b5-468b-825b-865106716f31)

ACKs for top commit:
  edouardparis:
    ACK ef55e8f01e65f67faff5bd2f07c2c1302d562dd9

Tree-SHA512: 4bad1cb94f43d69c0e4da79ce251ca73c529f1e093ab65b78a8054b187f9f7072d2527f112ecfe7670c279e275c9d16b183ac4c3ce2d62bd4896ce763b33df04
2024-11-07 11:11:09 +01:00
Michael Mallan
ef55e8f01e
gui(installer): list wallets using secondary buttons 2024-11-07 09:55:51 +00:00
edouardparis
ff968ea51f
Merge #1442: gui(installer): use fixed keys ordering
86cebc2ddf70b1cfe2d717eb379999ee68699a5e gui(installer): use fixed keys ordering (Michael Mallan)

Pull request description:

  This is to fix #1439. It follows the same approach as used in the settings to ensure consistent ordering when iterating over keys.

ACKs for top commit:
  edouardparis:
    utACK 86cebc2ddf70b1cfe2d717eb379999ee68699a5e

Tree-SHA512: 97c95804d9656f1a24c65134f7f4269b3410252f4ebd743d57e4ef9400b68e5ab534cf304cb5c414ffb2339ea00ed64564a43eee7338dc0c0f07f87d4b421a5b
2024-11-06 11:49:55 +01:00
Michael Mallan
86cebc2ddf
gui(installer): use fixed keys ordering
This follows the same approach as used in the settings.
2024-11-06 09:34:41 +00:00
edouardparis
7fadb9a60c
Merge #1441: gui(installer): fix word plurality when adding keys
d1bcb71ea4d4bdafe4b81fcfbfe78558b7fd8366 gui(installer): fix word plurality when adding keys (Michael Mallan)

Pull request description:

  This is to fix #1440.

ACKs for top commit:
  edouardparis:
    utACK d1bcb71ea4d4bdafe4b81fcfbfe78558b7fd8366

Tree-SHA512: 590b19ec0d717fc3c82f9323a9fc41e79cc52e7b60df9b1319e24b851f1c99d75e12b4bf74d4e6381671895298388b942d494c395d2bbd8c6138b941b01f218b
2024-11-06 10:31:39 +01:00
Michael Mallan
d1bcb71ea4
gui(installer): fix word plurality when adding keys 2024-11-06 08:59:20 +00:00
edouardparis
2fa8294f60
Merge #1434: gui: prepare version 8.0
81dc4eaa22d496bf3b2c3f497b2aa6e62383ec69 gui: version 8.0 (edouardparis)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 81dc4eaa22d496bf3b2c3f497b2aa6e62383ec69

Tree-SHA512: 947716aad16060f71f0adadb27fd99ab97d0211a1efe771afb564da63b239ba97e49cf3a9df2833ce4568a4eb99b7704f0460cf2e77af65c721768aa85fa5e67
2024-11-05 12:39:04 +01:00
edouardparis
81dc4eaa22 gui: version 8.0 2024-11-05 12:18:52 +01:00
edouardparis
89299f60b4
Merge #1433: Prepare v8 release
9c30aad9e2f245e587eb5bcd689383e4215b1ed6 Update doc for v8 (edouardparis)
95e97bc7dc769f635d5e4a51d3690ec46cf60fb3 Bump liana version v8 (edouardparis)

Pull request description:

ACKs for top commit:
  jp1ac4:
    ACK 9c30aad9e2.

Tree-SHA512: 9b909b997cf638bc0bb3d7fefd4c237f5e5b96f9bab9919ea39a945e3c96929dc09ce12796bf882137420bdc8f653a64835fcaf84ca63b2788e49cbd849f4bf4
2024-11-05 12:14:03 +01:00
edouardparis
9c30aad9e2 Update doc for v8 2024-11-05 12:02:15 +01:00
edouardparis
95e97bc7dc Bump liana version v8 2024-11-05 11:11:20 +01:00
edouardparis
84a370e339
Merge #1350: Add compression algo flag to dpkg command for arch build
953a85b94321093d29926283df951c3f4f00d2aa Add compression algo flag to dpkg command for arch build (edouardparis)

Pull request description:

  Arch package failed to be extracted during pacman update because of the default zstd algo

ACKs for top commit:
  edouardparis:
    Self-ACK 953a85b94321093d29926283df951c3f4f00d2aa

Tree-SHA512: f5c0885981c5f60e291614fae8f8942b243059bc3c98c2fd313eb8f30a99d4eb832cde1e63e0206e0f71ccb637a0ddb3426283abb8e56231a5eadc65f8775309
2024-11-05 10:33:47 +01:00
edouardparis
0b9a029e2a
Merge #1431: gui(installer): display warning & selected icons
f075b3de74ccbce8d73bf3fc2e8a1ced32192e2e gui(installer): 37dab1bff29333e6f73616238d5e608975002ce7 make only the warning displayed when a device does not support tapminiscript, this commit add also the 'selected' icon (pythcoiner)

Pull request description:

  ![image](https://github.com/user-attachments/assets/b0ccc3e6-5d61-47f2-b8e3-0bd17d7c68b8)

ACKs for top commit:
  edouardparis:
    ACK f075b3de74ccbce8d73bf3fc2e8a1ced32192e2e

Tree-SHA512: bda25aec6719cf6934e021bfa7ba0c6fa2d193b00cb63f53f52d956b3541769942eb9e4a9b0a09f66fc94ac4f3533441d7f7725fd61136cf40544cd90d130f17
2024-11-05 10:03:44 +01:00
edouardparis
d3a1e19b8a
Merge #1404: Refac pagination: sort list in async command
c620c8278ffb8a051a5613be7620b2589c6a19f7 Add specific comparaison order for HistoryTransaction (edouardparis)
6de5016c0886d297350b47267e3a6614bae38df3 Refac pagination: sort list in async command (edouardparis)

Pull request description:

  This is part of a major rework to fix performance issue while loading lot of transactions in the gui.

ACKs for top commit:
  jp1ac4:
    ACK c620c8278ffb8a051a5613be7620b2589c6a19f7.

Tree-SHA512: 54abaf0a00e14b6ca0ae58dc8025cdd0707cc7ced3b168a4cbc97b60ab46ee72fdbda99e488053b8a101b17682c8fe1d996b5721e49134f4e520f84a5a692eb3
2024-11-05 09:50:53 +01:00
edouardparis
14f2a318f9
Merge #1428: gui(installer): align title & descrpition in path cards
f6c953fb1dcf16b303d8382160dbbffbde060b2d gui(installer): align title & descrpition in path cards (pythcoiner)

Pull request description:

  fixes #1427
  ![image](https://github.com/user-attachments/assets/4bf68994-6bb7-4929-9a98-8cda7a4039fd)

ACKs for top commit:
  jp1ac4:
    tACK f6c953fb1dcf16b303d8382160dbbffbde060b2d.

Tree-SHA512: f377a509156363f611a48a00dbd219b193d5542f5d2862c405c492bddc139d96c2b5b35c268f71ee02cc20b2b88c838e591cbb7f73ebfc1f740952f520f366f6
2024-11-04 19:31:17 +01:00
pythcoiner
f075b3de74 gui(installer): 37dab1bff29333e6f73616238d5e608975002ce7 make only the warning displayed when a device does not support tapminiscript, this commit add also the 'selected' icon 2024-11-04 18:37:34 +01:00
pythcoiner
f6c953fb1d gui(installer): align title & descrpition in path cards 2024-11-04 18:21:24 +01:00
edouardparis
30024e576e
Merge #1422: gui(installer): apply wording changes to installer templates
9a3bc87a755d8290f2b89847431a0fe2eb889370 gui(installer): update template SVGs (Michael Mallan)
e0434013d36376670fd16db1cc9ef9488f9fea1e gui(installer): update general templates wording (Michael Mallan)
ca276bf563990cfd795f52a66e8021c23bde7279 gui(installer): remove prompts for spending paths (Michael Mallan)
3764c972f2431545a23434bd01003de8678638a2 gui(installer): change button text to Next (Michael Mallan)
4d05e6127e68b5b6000a1f2697ae47bc71bd47c4 gui(installer): remove templates introductory text (Michael Mallan)
8183370f561ee4ad4de6ae733c2eb1f8107b521c gui(installer): update template names & descriptions (Michael Mallan)
97c9affd9cb400fee516dd2d566ce85af96abb6b gui(launcher): refer explicitly to liana wallet (Michael Mallan)

Pull request description:

  This is to resolve #1418.

ACKs for top commit:
  edouardparis:
    ACK 9a3bc87a755d8290f2b89847431a0fe2eb889370

Tree-SHA512: 0f90d405c84f6172f12b309f5f06dc5a09ac18071cbf8d81debdb4dde2740d7120612f1ebe918e87287acc6b58a92bbbcc9c547c9a8e8d86006884a9fa5f1c6c
2024-11-04 18:12:23 +01:00
edouardparis
bd3422ca35
Merge #1412: gui(installer): make edit key modal scrollable
47a5d3218503294065acebaee1add5b7d52d3a81 gui(installer): make edit key modal scrollable (Michael Mallan)

Pull request description:

  This is to fix #1402 following the suggestion in https://github.com/wizardsardine/liana/issues/1402#issuecomment-2448730840.

ACKs for top commit:
  pythcoiner:
    tACK [47a5d32](47a5d32185)
  edouardparis:
    ACK 47a5d3218503294065acebaee1add5b7d52d3a81

Tree-SHA512: 4bf84e041e4e2ae6cbb7645a75290912d975c7c7312e7779b95f855753dc8000ff6f377b13c85ed69cd68be721fde2998c6c1f3034b92b0dab03a07edc82af68
2024-11-04 18:08:16 +01:00
Michael Mallan
9a3bc87a75
gui(installer): update template SVGs 2024-11-04 16:53:57 +00:00
Michael Mallan
e0434013d3
gui(installer): update general templates wording 2024-11-04 16:53:55 +00:00
Michael Mallan
ca276bf563
gui(installer): remove prompts for spending paths 2024-11-04 16:53:53 +00:00
Michael Mallan
3764c972f2
gui(installer): change button text to Next 2024-11-04 16:53:49 +00:00
Michael Mallan
4d05e6127e
gui(installer): remove templates introductory text 2024-11-04 16:50:00 +00:00
Michael Mallan
8183370f56
gui(installer): update template names & descriptions 2024-11-04 16:49:58 +00:00
Michael Mallan
97c9affd9c
gui(launcher): refer explicitly to liana wallet 2024-11-04 16:49:56 +00:00
edouardparis
103651ec7f
Merge #1430: gui(installer): better warn. if a signer is not compatible w/ tapminiscript
37dab1bff29333e6f73616238d5e608975002ce7 gui(installer): better warning if a signing device is not compatible w/ tapminiscript (pythcoiner)

Pull request description:

  - replace this warning:
  ![image](https://github.com/user-attachments/assets/113f9608-a695-4389-8c53-f0da40fcb04f)
  by this one:
  ![image](https://github.com/user-attachments/assets/da666783-88ef-466c-a16a-5619c122d687)

  - before if a non tap miniscript compatible device was selected, the selected icon was displayed, now the warning icon have priority:
  ![image](https://github.com/user-attachments/assets/54b0e44e-c169-4aa0-b45d-7609b735cee2)

ACKs for top commit:
  edouardparis:
    utACK 37dab1bff29333e6f73616238d5e608975002ce7

Tree-SHA512: 5b23cf097618ea19adde4477319c431308946a46d9c92d898da62c16b3a27977cb5ac7b27e802ac4ef85c94ebc610c4621a26ceace78f94fb0e26558b9f389ca
2024-11-04 17:46:24 +01:00
edouardparis
c4370f8d41
Merge #1415: gui(installer): add space at bottom of pages
a105c495005ba715883a6e9a53fbdde93e7741ae gui(installer): add space at bottom of pages (Michael Mallan)

Pull request description:

  This is to fix #1410, including for the mnemonic and descriptor backup steps.

  The space height in all cases will be 70.0 when combined with the existing vertical spacing between elements.

ACKs for top commit:
  pythcoiner:
    ACK tested [a105c49](a105c49500)
  edouardparis:
    ACK a105c495005ba715883a6e9a53fbdde93e7741ae

Tree-SHA512: 5e9f27b80490e1eea0690750a52c650c7ea607c9c42a25cb0e96dab779d691e057a2629c00c772b0c5101d4054108eb8f33ea984b837026bb858824221aca71f
2024-11-04 17:37:07 +01:00
pythcoiner
37dab1bff2 gui(installer): better warning if a signing device is not compatible w/ tapminiscript 2024-11-04 16:54:55 +01:00
edouardparis
c620c8278f Add specific comparaison order for HistoryTransaction 2024-11-04 16:53:39 +01:00
edouardparis
6de5016c08 Refac pagination: sort list in async command 2024-11-04 16:53:39 +01:00
edouardparis
b6e50e5b2c
Merge #1421: Refresh cache more often in GUI while wallet or blockchain is syncing
918909db235ff8a0886a9f74d7ac3b1caec83324 gui: include last poll for cache refresh interval (Michael Mallan)
c915970c7b00adbd27c0d8a20116d1bda57a8d2c gui(home): pass sync status directly (Michael Mallan)
92a4a4f8dcaa75bc7181767b1958e39c94e8ad3f gui(cache): store last poll at startup (Michael Mallan)
acf14c6d734fc238dc1f44a4b5bab1f3f6411c9b gui: refresh cache more often while syncing (Michael Mallan)
e419784e9f2da76e8e86c03c8773f0dcb2a883da gui: move sync status function to wallet module (Michael Mallan)

Pull request description:

  This is to resolve #1414.

  In the end, I felt it was simple enough to include commits that cover both parts of #1414 (the short-term change and the follow-up).

  I start with the short-term change (setting the refresh interval ignoring the last poll logic) and then follow with commits that cover all syncing statuses.

  I don't use as high a refresh frequency for a remote backend as for a local backend, but these values can be easily changed if required.

ACKs for top commit:
  pythcoiner:
    tACK [918909d](918909db23)

Tree-SHA512: 6b47f315b0d50b2898435247b288562413e0f0abf520747edc67166c66153f7432e65ae5b3337bba67c71ade7181110e5dbfbc58df3b8510bfb5d9eb29b2bb02
2024-11-04 16:11:32 +01:00