493 Commits

Author SHA1 Message Date
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
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
46de2e07a8
Merge #282: Multisig support
3ea85fa9506bc96440096a9d11cceffdbf5eab44 descriptor: introduce a helper to analyze a PSBT spending Liana coins (Antoine Poinsot)
aac330ca65686ddb0d5b64778f49025e602cfa02 descriptors: rename DescCreationError in a general desc-related error (Antoine Poinsot)
92905968234053feaaad8a83a5080860779d2898 qa: test using lianad with a multisig descriptor (Antoine Poinsot)
3c82173f468a099d298514ddfe2bd376ad9f08c8 qa: abstract the signer from the Lianad class (Antoine Poinsot)
e22e30dc8d3f0c99a0f176857f35ac5ed60a34f4 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 3ea85fa9506bc96440096a9d11cceffdbf5eab44

Tree-SHA512: b95402b4483e9b282680288b6515049c3ab7ac0debe7659b39768e4b85de8e4b3d6000a2de8b633c47f7f7db49593a23853028f481a09fc13f3d9d574f7cca51
2023-01-31 15:34:54 +01:00
edouard
df2aacd082
Merge #296: Gui: text and layout of recovery screen fix #265
6c375ad06d3d16e8c99fc783fece1719ef06ad35 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 6c375ad06d3d16e8c99fc783fece1719ef06ad35

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
a2c584f6030d233854ae6508911c0c5301b9b6db doc: add a document about signing devices and specifically the Ledger app (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  edouardparis:
    ACK a2c584f6030d233854ae6508911c0c5301b9b6db

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
b177f190d144986c1268c640075c89399f4c599d 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 b177f190d144986c1268c640075c89399f4c599d

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
b8f1704f3873d75d80cba02861e9c5ab3dfacc2a bump iced v0.7 (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK b8f1704f3873d75d80cba02861e9c5ab3dfacc2a

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:🪟: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
d81c22767c489d5a11db78cc34f59eb008f431f9 gui: order coins list in coins panel (edouard)

Pull request description:

  close #193

ACKs for top commit:
  edouardparis:
    Self-ACK d81c22767c489d5a11db78cc34f59eb008f431f9

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
ca096c71b52c5843b68dba0ceaeabe2755bf29a7 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 ca096c71b52c5843b68dba0ceaeabe2755bf29a7

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
9921bcadd56a0ce5ad6062730ed9a3eea4dce67a Add update psbt action to spend tx panel (edouard)
c4ccbf011399d0425cfb7b54da6d3b0c3f4ef385 gui: import a spend draft (edouard)

Pull request description:

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

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
afc4636ad98bcff9ab2b63f3fbf08f9318031cf9 Forbid next step if amount sent > available amount (edouard)
3eddedd7a8c77acf53ebe095d85ceced7b7f7263 Reload amount left to select in choose coins step (edouard)
86896c822317ab108541acbf0622d94a9119c479 Check output amount superior to dust value (edouard)
ecd35d2bd171c5975de62188d142494268e394a2 Add available balance to choose recipient step (edouard)

Pull request description:

  close #195
  close #237
  close #196

ACKs for top commit:
  edouardparis:
    Self-ACK afc4636ad98bcff9ab2b63f3fbf08f9318031cf9

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
bde519fa7bf1eeed72950961d09eaf96acfc9e93 Integrate modal component in spend tx actions (edouard)
7ffde7381b166acabd121e1915365cc8b517d566 ui: add modal component (edouard)

Pull request description:

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

ACKs for top commit:
  edouardparis:
    Self-ACK bde519fa7bf1eeed72950961d09eaf96acfc9e93

Tree-SHA512: 44be8ca11676e64a31b08339cfc2979f3427ca586c391e603aada8d8018c283253a0ee6558ecbfc978240845d3a1c57249f35da2e1f709b12e06a999cbc7753b
2023-01-03 15:29:34 +01:00
edouard
bde519fa7b Integrate modal component in spend tx actions 2023-01-02 15:48:32 +01:00
edouard
7ffde7381b ui: add modal component 2023-01-02 15:48:32 +01:00
edouard
2a589d9764
Merge #274: gui: bump iced 0.6
03c39c44f6ebbac46383a5ebb88cd1561b2d2eb8 bump iced 0.6 (edouard)

Pull request description:

  The version of the iced crates are
  upgraded without introducing version
  change in the other external dependencies.

  This upgrade introduces fixes of the iced
  framework. See:
  https://github.com/iced-rs/iced/releases/tag/0.6.0

ACKs for top commit:
  edouardparis:
    Self-ACK 03c39c44f6ebbac46383a5ebb88cd1561b2d2eb8

Tree-SHA512: 6e3f3021aee04c4958dd221ff525b1683af126e5980f6ebbad5daeae877917ccc82ddff53cc064ad0526afb73d8cd6b51279cf071b125952c702f75bc761c6d5
2023-01-02 15:29:45 +01:00
edouard
03c39c44f6 bump iced 0.6
The version of the iced crates are
upgraded without introducing version
change in the other external dependencies.

This upgrade introduces fixes of the iced
framework. See:
https://github.com/iced-rs/iced/releases/tag/0.6.0
2022-12-29 11:31:37 +01:00
edouard
c98c520f06
Merge #270: Liana gui 0.1
900529bcc609b75e7b3656ac25dfaeaa8d23b751 gui: 0.1 (edouard)
262842a9dcda8246ac83d91a1c29f8846ed49789 gui: liana-0.1 (edouard)

Pull request description:

ACKs for top commit:
  darosior:
    ACK 900529bcc609b75e7b3656ac25dfaeaa8d23b751

Tree-SHA512: 221244a2d5fcb0fd2ade16c1a22f7da6557811a1c223376bd389b7570f1c5402248724232a4de4a62ceb94b1cd41b8deb1c26e566591e83d8b01b3fe776259e0
2022-12-21 12:56:21 +01:00
edouard
900529bcc6 gui: 0.1 2022-12-21 12:12:32 +01:00
edouard
262842a9dc gui: liana-0.1 2022-12-21 12:09:58 +01:00
edouard
863cea55d7
Merge #269: liana: 0.1
c31751dee3a42f8d3ed3f116b9bb2fd8c333fc1b liana: 0.1 (edouard)

Pull request description:

  Once this PR is merged, gui will have its liana last commit updated and version set to 0.1

ACKs for top commit:
  darosior:
    utACK c31751dee3a42f8d3ed3f116b9bb2fd8c333fc1b

Tree-SHA512: bc6e9340817363905dc1175b6c97d525c77d76d1cdbb91d1198099c07132ff2e8656ec29c9669c8ce47ba23327d65adb051996e2821ef16a1fa4243b4cd59692
2022-12-21 12:08:34 +01:00
edouard
c31751dee3 liana: 0.1 2022-12-21 11:44:41 +01:00
Antoine Poinsot
9f5308395c
Merge #266: Check the address network during spend creation
9e1c16bc3fef5aa01a62cb34304cc161d4623468 Check the address network during spend creation (edouard)

Pull request description:

ACKs for top commit:
  darosior:
    utACK 9e1c16bc3fef5aa01a62cb34304cc161d4623468 check looks good to me

Tree-SHA512: 638d9d461230f487e8a150d02814baaa2a9c93ad2de339aa7f3f2436431276f41b4b833b7d5f2abdc505004fefd962d54596e581bfe732613f2765ef6d61260d
2022-12-20 23:36:28 +01:00
Antoine Poinsot
736e4767fa
Merge #267: commands: check addresses' network when creating transactions
ed6ff9c67b69b08e08e466102656b6765584dfce commands: check addresses' network when creating transactions (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  edouardparis:
    utACK ed6ff9c67b69b08e08e466102656b6765584dfce

Tree-SHA512: 91c51afa79e5135b4118c789d0208aaa3014e930c8434e904e7aec76adf2f12939971be5c5e062fa08e13f31ba69b63323ef0d685e11d71e662eebf60c8c1a3f
2022-12-20 23:36:09 +01:00
edouard
9e1c16bc3f Check the address network during spend creation 2022-12-20 18:44:50 +01:00
edouard
57e8545b22
Merge #268: fix launcher: exit on close event
09789b8161c04c9e1872d62232a8e95e97d42ab6 fix launcher: exit on close event (edouard)

Pull request description:

  close #264

ACKs for top commit:
  edouardparis:
    Self-ACK 09789b8161c04c9e1872d62232a8e95e97d42ab6

Tree-SHA512: e8c46719349320ef4fafd9cdf32a5967329e72999694ccf296ee27fa9307282c3645101e70de233bc1c7f1530b1b5afc9f366fb819e8f70a320843f6571204d4
2022-12-20 18:09:43 +01:00
Antoine Poinsot
ed6ff9c67b
commands: check addresses' network when creating transactions 2022-12-20 18:04:54 +01:00