150 Commits

Author SHA1 Message Date
jp1ac4
5391bfe04c
commands: add rbfpsbt command 2023-12-06 17:35:05 +00:00
Antoine Poinsot
a77a36cb9e
commands: make it possible to create a sweep spend transaction
We leverage the change logic for this. By making it possible to set the
change address to an external address, one can send all the value from
the inputs to this address.
2023-11-24 13:51:42 +01:00
Antoine Poinsot
2e2afc1d7b
doc: document deriv index in getnewaddress result 2023-11-16 18:09:51 +01:00
jp1ac4
cfa0f91dd3
commands: auto-select coins if none provided
When creating a new spend, if coin outpoints are not provided,
then coins will be selected automatically.

This automatic selection is such that the transaction fee is
minimized, taking into account the cost of creating any
change output now and the cost of spending it in the future.

If change is added, it must reduce the transaction waste and
be above the dust threshold. This same policy is applied also
in the case of manual coin selection, replacing the previous
logic for determining the change amount. This ensures that
creating a spend with auto-selection and another with manual
selection using the same auto-selected coins will give the
same change amount.
2023-11-14 13:32:53 +00:00
Antoine Poinsot
479efe7494
Merge #709: Implement listadresses
2660b77487d63218019413a4ca33b3a9629fbfc8 implement listadresses (pythcoiner)

Pull request description:

  address #681

  todo:
  - [x]  implement tests
  - [x] update docs

  edit: i'm really new to rust, don't hesitate to kick my ass when i write stupid code

ACKs for top commit:
  darosior:
    ACK 2660b77487d63218019413a4ca33b3a9629fbfc8 -- my requests are addressed in followup #808.

Tree-SHA512: a5fdfb4516dc0379bfec1be535e752795dec75d28cbc5b9fa4fe9898fa00b1cfaa9cee3b95f4dfd68365f4585426e1b4457a8366cc4f783600704994f879526f
2023-11-11 14:43:23 +01:00
pythcoiner
2660b77487 implement listadresses 2023-11-10 14:59:44 +01:00
omahs
4fe9397a5e fix typos 2023-11-02 15:02:43 +01:00
Antoine Poinsot
9d9c4e57c2
doc: mention the bitbox too is supported now! 2023-11-02 10:54:38 +01:00
Antoine Poinsot
17ca01322e
Revert "Merge #722: Only include BIP32 derivations for a single spending path when creating PSBTs"
This reverts commit 71056982636b408485ab24dab6628a555a6e7924, reversing
changes made to 03c37bd378f4f6bf11d90b224ed1db74b3596eaf.

This reverts PR #722. It turns out the Ledger Bitcoin app needs the
BIP32 derivation for all the keys in the Script, not only for the
spending path used. Therefore always create PSBT with all the BIP32
derivations. We'll add a way to prune them for talking to the Bitbox in
a future commit.
2023-10-27 15:46:03 +02:00
edouard
7105698263
Merge #722: Only include BIP32 derivations for a single spending path when creating PSBTs
7f3b0b021858cfb2fe914f3ba6b30a39e3ae05ff qa: test a PSBT has only the BIP32 derivations for a single spending path (Antoine Poinsot)
b71bd693d6ea4c1c3567194fc82be43fb70c05bb qa: don't use a static dummy origin for descriptor xpubs (Antoine Poinsot)
a81d39c81a89cdf5e70b9888cbeb3abaf290a365 commands: do not include BIP32 derivations for other spending paths (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  edouardparis:
    ACK 7f3b0b021858cfb2fe914f3ba6b30a39e3ae05ff

Tree-SHA512: f0e132edf8d653c5575f843b1e85d995f155a2435a6e6257564dc945562df70ec2049c29d77f7580858d9e4a58290b0798f298f77c18255415c4cf26ccc07f33
2023-10-24 12:40:43 +02:00
edouard
01ca960370
Delete empty labels when they are updated
In order to delete a label, client sends in the
request a null value as label value.

Co-Authored-by: Antoine Poinsot <darosior@protonmail.com>
2023-10-21 09:21:02 +02:00
Antoine Poinsot
7f314844b1
Merge #710: Try.md update with Liana 2.0 managed node
5858f2c30b7bd71a1027fa7484bf989b9891bd3a Update doc/TRY.md (Kevin Loaec)
e069be87c42f620f210f85e0762f4fdd41c00255 Update doc/TRY.md (Kevin Loaec)
e5652d9eb8d885d3f8598c90dcc406f7f1106b7e Update TRY.md (Kevin Loaec)
02a18392622b5b21b73c699ebbbc6b3dffc2db48 Update TRY.md (Kevin Loaec)
e1451fc2af4e432e7bf3365816a51ccd08eb86ff Update TRY.md (Kevin Loaec)

Pull request description:

ACKs for top commit:
  darosior:
    ACK 5858f2c30b7bd71a1027fa7484bf989b9891bd3a

Tree-SHA512: 2dcbb7d0c83c9ebe5fe3c8d4242ae33879dc889da283c2752c904d6b282be3c6388496a75c06b1ea5b83604e6076214be16bfaec365e7891222c53a31718ab31
2023-10-08 12:37:57 +02:00
Antoine Poinsot
b877498284
Merge #716: Minor fix RECOVER.md
78ac13cdb56426f38523d0b0b9fbd241dd655673 fee_rate (pythcoiner)
a0186a95509bcea147f19da3f9360ed427ae7bd6 liana => liana_recovery (pythcoiner)

Pull request description:

ACKs for top commit:
  darosior:
    ACK 78ac13cdb56426f38523d0b0b9fbd241dd655673

Tree-SHA512: 450e1d8dc6090a1a9d13f617f2c2ff58f0e95b27fa76cbfe1ece342fb783c6f7ba75df12e40b40bbab88f63ecf9ae348ffc2a070efd2bd887ca9ff0ed8105ad1
2023-10-08 12:35:41 +02:00
Antoine Poinsot
a81d39c81a
commands: do not include BIP32 derivations for other spending paths
When creating a PSBT, only include the BIP32 derivations in each input
for the spending path this PSBT was created for.

This is to workaround Bitbox only providing a single signature per
input. Most likely other signing devices will have this behaviour too in
the future. See
https://github.com/wizardsardine/liana/pull/706#issuecomment-1744705808.
2023-10-06 18:23:11 +02:00
Kevin Loaec
5858f2c30b
Update doc/TRY.md
Co-authored-by: Antoine Poinsot <darosior@protonmail.com>
2023-10-02 12:06:36 +00:00
Kevin Loaec
e069be87c4
Update doc/TRY.md
Co-authored-by: Antoine Poinsot <darosior@protonmail.com>
2023-10-02 12:05:36 +00:00
pythcoiner
78ac13cdb5 fee_rate 2023-09-17 06:25:52 +02:00
pythcoiner
a0186a9550 liana => liana_recovery 2023-09-17 06:00:37 +02:00
jp1ac4
eeaf90e522
commands: optionally filter listcoins by status and/or outpoint 2023-09-13 08:49:54 +01:00
Kevin Loaec
e5652d9eb8
Update TRY.md
step 2 instead of 3
2023-09-12 15:22:37 +00:00
Kevin Loaec
02a1839262
Update TRY.md
done
2023-09-12 15:17:46 +00:00
Kevin Loaec
e1451fc2af
Update TRY.md
work in progress
2023-09-12 13:10:43 +00:00
Antoine Poinsot
cf17cc2cd6
Merge #605: Add labels support to lianad
204c160c4d01e5d12130a89347923e8d7d4f0f57 tests: test the RPC interface for managing labels (Antoine Poinsot)
bf3eb33900d52cd43e7c7cae2e42dc2075a6b249 lianad api: expose coin address (edouard)
7338e6f988a553d022903e7fd478e134be905762 Add labels to lianad (edouard)

Pull request description:

ACKs for top commit:
  darosior:
    ACK 204c160c4d01e5d12130a89347923e8d7d4f0f57

Tree-SHA512: 24ff9ea9ee5df0458534dd28a40d485f8bf9e110463faf78450f48ffbd18137f74f73aecf8234021d03a374879a6dd1c7188f162d81d7539cd790845a2855a1f
2023-08-28 14:37:07 +02:00
edouard
bf3eb33900 lianad api: expose coin address 2023-08-28 13:14:21 +02:00
edouard
7338e6f988 Add labels to lianad 2023-08-28 13:14:21 +02:00
Antoine Poinsot
8c7c7a7135
doc: polish the Bitcoin Core recovery document 2023-08-28 13:11:53 +02:00
Antoine Poinsot
7ba95de8d2
Merge #619: Recover on Bitcoin Core
fcfad2de348a7d8b362631cf787599c284242aad import descriptor w/o replacing hardened identifier (pythcoiner)
eb1e0131222893981ce58965881c62c847d54372 recover walkthrough (pythcoiner)

Pull request description:

  xref #375

ACKs for top commit:
  darosior:
    ACK fcfad2de348a7d8b362631cf787599c284242aad. I'll have a second pass for the syntax and expliciting a couple things. Thanks!

Tree-SHA512: c2713d0db8240b844c3a4cf3d97044a5846bba903c1209f08ce903475525d5145b9555fa693eed326e3d4a8e85577922adfb366664ec162303cb0bf3a4aae2a0
2023-08-28 10:19:38 +02:00
pythcoiner
fcfad2de34 import descriptor w/o replacing hardened identifier 2023-08-28 07:31:45 +02:00
pythcoiner
eb1e013122 recover walkthrough 2023-08-27 13:28:26 +02:00
jp1ac4
698eff7059
doc: Add step to choose bitcoind type 2023-08-23 16:43:55 +01:00
Antoine Poinsot
6ab6161078
commands: expose whether a coin is immature in listcoins 2023-07-20 13:42:35 +02:00
Antoine Poinsot
29ab7f30b6
Merge #556: doc(api): fix order of params for createspend
11a280bfe4e46031b55259d1ba4963ed4b6f2b8b doc(api): fix order of params for `createspend` (jp1ac4)

Pull request description:

  This fixes the documented order of parameters for the `createspend` command.

  I also added a full stop to the `destinations` description for consistency.

ACKs for top commit:
  darosior:
    Thanks! ACK 11a280bfe4e46031b55259d1ba4963ed4b6f2b8b.

Tree-SHA512: bb8778fcb25bb31f883825142e102741592593db22ccfad467b6704767055c67f135b39a5d8b2e3ba9f1e9bf53a422bd82423212c546882a5d302e512718beab
2023-07-13 10:19:24 +02:00
Antoine Poinsot
117221e9ee
Bump lianad MSRV to 1.54
Now that the latest Debian stable was released with 1.63.
2023-06-27 17:01:32 +02:00
jp1ac4
11a280bfe4
doc(api): fix order of params for createspend 2023-06-09 09:18:02 +01:00
Antoine Poinsot
74598742f5
Merge #549: doc: mention the minimum supported glibc version
e437f6bd5717d7c3ef290b4e88aca22dd434dc71 doc: mention the minimum supported glibc version (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  darosior:
    self-ACK e437f6bd5717d7c3ef290b4e88aca22dd434dc71 -- trivial, it's only docs

Tree-SHA512: cab02c7879c2ef7ea564a7c474aa43b0858ad6cd1f04ea77cd9761c81fcc9c63baac70d03c8b00d93b366055fd114f434cc618251599b0ddfbad3ca233b6358b
2023-06-06 11:42:50 +02:00
pythcoiner
60ff05acf7 add tips and tricks 2023-06-02 18:51:22 +02:00
Antoine Poinsot
e437f6bd57
doc: mention the minimum supported glibc version 2023-05-30 16:05:26 +02:00
Antoine Poinsot
21f069a4e7
Merge #529: add glibc version
0d3e9e1593b736fd68c89ac2dfc8fe05f0846403 add glibc version (pythcoiner)

Pull request description:

  follow #523

ACKs for top commit:
  darosior:
    ACK 0d3e9e1593b736fd68c89ac2dfc8fe05f0846403

Tree-SHA512: 2348297de50752c7af35470644597a618defdfdcccf20b773f7034a6aa441b10c77d00405f836becdbeebf033fb1f8f932b7af6e4db06ca7705671b38a3906c1
2023-05-30 15:14:52 +02:00
fanquake
5b63fe8138
doc/ci: Use Bitcoin Core 25.0 2023-05-29 10:14:42 +01:00
Antoine Poinsot
54ac3c7d49
Merge #535: add udev dependency to TRY.md
4dcac426a941dd62b27d4df1379ef836e394a789 add udev dependency to TRY.md (pythcoiner)

Pull request description:

  i just found out that on ubuntu 22.04,  libudev-dev cannot be installed if udev is not installed first

ACKs for top commit:
  darosior:
    Thanks. utACK 4dcac426a941dd62b27d4df1379ef836e394a789.

Tree-SHA512: 916e00ba5679573692913272d9d827562c14742b7e4e5f08b8b3f4bbd88577b2361a5b74683d7865de4e279e26365a163edb8cbc13daef4485ae7d18065deb30
2023-05-22 18:03:39 +02:00
pythcoiner
4dcac426a9 add udev dependency to TRY.md 2023-05-20 23:59:14 +02:00
pythcoiner
0d3e9e1593 add glibc version 2023-05-20 23:42:39 +02:00
fanquake
1eb7c08b45
doc/ci: Use Bitcoin Core 24.1
Leave minimum supported version as 24.0.1.
2023-05-19 15:04:57 +01:00
pythcoiner
54679343ec replace minisafe by liana 2023-05-13 18:59:49 +02:00
Antoine Poinsot
664a9b6cf5
Documentation updates for v1.0 2023-05-11 11:44:56 +02:00
Antoine Poinsot
c6c312a011
commands: allow to create send-to-self transactions with 'createspend' 2023-05-04 16:15:09 +02:00
Antoine Poinsot
e8a0d39cd6
Merge #404: Release notes for 0.3.1 and 0.4
df5c4ee85d2f138f180842df6aa09d73c663d51d doc: remove mentions of experimental Ledger apps (Antoine Poinsot)
c3d7039d910f5ea24115cf57bab827436421abe3 CHANGELOG: 0.4 release notes (Antoine Poinsot)
b6f13932d19286716d76b4aa52726484183f19dc CHANGELOG: 0.3.1 release notes (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  darosior:
    self-ACK df5c4ee85d2f138f180842df6aa09d73c663d51d

Tree-SHA512: 4d0a91ba7af42ed48e2217f10ef11299bb4cb49977c44d80ff0c838596e0c1b8150ff14ef062dd00cabeecba06108c0bb264446ed70ad221b8cf2bf5c6058528
2023-04-10 11:18:23 +02:00
Antoine Poinsot
df5c4ee85d
doc: remove mentions of experimental Ledger apps
It's not needed anymore
2023-04-10 11:17:20 +02:00
Antoine Poinsot
104c6e1a09
commands: add an 'updated_at' field to listspendtxs entries 2023-04-05 12:41:03 +02:00
Antoine Poinsot
d68d0e1134
commands: adapt 'createrecovery' to multiple recovery paths 2023-04-04 11:53:22 +02:00