126 Commits

Author SHA1 Message Date
Michael Mallan
0f9f1f352c
commands: return last poll timestamp from getinfo 2024-10-24 11:24:31 +01:00
edouardparis
1cf22eb00c Update gpg key documentation with Edouard key 2024-09-13 09:54:21 +02:00
Ben Westgate
6a6a72408f
grammar: USAGE.md download it there -> download it here 2024-09-07 01:22:27 -05:00
Michael Mallan
ada89c5c56
doc: update with electrum info 2024-09-05 14:55:58 +01:00
pythcoiner
a94138ebb3 doc: update signing device support & versions for taproot 2024-07-19 18:47:42 +02:00
edouardparis
696036f648
Merge #1111: Add instruction to refresh Antoine PGP key
ba9213e48c232a3ae9fcc79506f2ebbe76995cf8 add instruction to refresh Antoine PGP key (pythcoiner)

Pull request description:

  fixes #1077

ACKs for top commit:
  edouardparis:
    ACK ba9213e48c232a3ae9fcc79506f2ebbe76995cf8

Tree-SHA512: 4105f7f568c923e1997e804c45f66ecfe982be28e8459c007009a5280d7cbdab8386e263ce57117784eac1791987035a9d88ae5270dbaf5f60bb144ccbd2fa7b
2024-07-15 15:22:13 +02:00
Antoine Poinsot
15f4e81972
doc: slight improvement to Jade documentation 2024-06-27 15:58:04 +02:00
pythcoiner
33b67fca98 update hw support info 2024-06-10 02:48:04 +02:00
pythcoiner
ba9213e48c add instruction to refresh Antoine PGP key 2024-06-10 02:40:49 +02:00
edouardparis
592d1af8fd
Merge #1074: Document the release process
d80dba048c2a020e6b0ce191d1470bdb0a82c148 doc: document the release process in a new document (Antoine Poinsot)
187857f106d639246f70278d4a55422f89014fd1 README: add a link to our Discord (Antoine Poinsot)

Pull request description:

  This document a bunch of stuff i've been doing for every release in the past years. I've detailed it in a number of steps for clarity.

  Fixes https://github.com/wizardsardine/liana/issues/803.

ACKs for top commit:
  edouardparis:
    ACK d80dba048c2a020e6b0ce191d1470bdb0a82c148

Tree-SHA512: c9f166c1ecfc595fcc3cd34d8603f6f2a67747625847e745fde5846dc5e687f04ac2e57886949f3f620ff1a55c40dc398cabc3013f058ddf70e00c73f3ec5922
2024-05-24 13:48:31 +02:00
edouardparis
4e2015922d doc: add Jade section to signing devices 2024-05-06 14:50:45 +02:00
Antoine Poinsot
860a1ea074
guix: use Rust 1.70 for release builds
We are being pulled over in two different directions when it comes to
our reproducible builds. On the one hand we need to target reasonably
old glibc versions in order to be compatible with older systems. On the
other hand the immaturity of the Rust ecosystem makes us require
bleeding edge versions of the compiler. With Guix to get the newer
versions of the compiler we need to also bump the glibc version.

This was not a sustainable situation. I was planning for a long time to
cleanup our reproducible builds. To create a proper Guix package for
both the daemon and the GUI using the build system they provide. I had
envisioned this way i could rewrite the inputs of the Guix package to
use an older glibc, while being able to bump the Guix time-machine. It
would even have allowed us to perform Windows builds inside Guix! And
who knows i could even have attempted to perform Apple ones too.

Unfortunately it turned out to be more complicated than that. I couldn't
manage to get my package to compile using an older glibc. Some details
about some of my failed attempts can be found there:
https://lists.gnu.org/archive/html/help-guix/2024-04/msg00056.html.

Instead of wasting more time on this, backport the newer Rust
declarations from up-to-date Guix to Guix-of-our-time-machine.
2024-04-18 17:05:20 +02:00
Antoine Poinsot
d80dba048c
doc: document the release process in a new document 2024-04-04 12:36:10 +02:00
Antoine Poinsot
744d8f856c
doc/USAGE: point to our website for download
No need to update this document for every single version anymore.
2024-04-01 16:57:12 +02:00
Antoine Poinsot
4bf54f19ae
doc: expand a bit on starting using the software 2024-03-27 19:11:52 +01:00
Antoine Poinsot
95391fc19f
doc: split up the README in multiple documents 2024-03-27 18:44:26 +01:00
Antoine Poinsot
b5c2375d0b
doc: update the signing devices compatibility documentation 2024-03-25 13:30:33 +01:00
Antoine Poinsot
de05460ad0
doc/BUILD.md: correct MSRV
Point to contributing.md, so we only have a single place to modify.
2024-03-22 16:38:04 +01:00
Antoine Poinsot
1819988b3f
Merge #921: Add optional txids param to listspendtxs
da1ebce5b6328f8f5636192e7434d1ba598d5516 add txids param to listspendtxs (pythcoiner)

Pull request description:

  fix #862
  - [x] daemon
  - [x] tests
  - [x] doc

ACKs for top commit:
  jp1ac4:
    ACK da1ebce5b6.

Tree-SHA512: 9696a8077bce2ba8f2abc9eda6a4cdc8654c83ffd61bc5b8419ca50e5ecc447dc78d2059e608c16e94306c27f2aaf21a77c879d21a54f24a049337545750cef7
2024-03-09 18:55:01 +01:00
pythcoiner
da1ebce5b6 add txids param to listspendtxs 2024-02-24 21:56:48 +01:00
jp1ac4
62bb4aded4
commands: include unconfirmed change as candidates 2024-01-25 14:57:56 +00:00
Antoine Poinsot
79141e2042
Merge #927: commands: include missing amount in spend response
13398982534d56a5723dfa86723c5917483c8653 commands: include missing amount in response (jp1ac4)

Pull request description:

  This PR follows a discussion around https://github.com/wizardsardine/liana/pull/873#issuecomment-1886715468.

  The GUI uses the `InsufficientFunds` error to get the missing amount when the user is creating a new spend, but it is not straightforward to extract this information in a general way from the RPC error (see https://github.com/wizardsardine/liana/issues/822#issuecomment-1836482355) and instead the spend module's `create_spend` is currently used (see https://github.com/wizardsardine/liana/pull/863).

  With this PR, the missing amount will be included in the `createspend` response rather than as an error.

  These changes are based on suggestions from @darosior and @edouardparis.

  In a follow-up PR, the GUI should revert to using the `createspend` command to calculate the amount left to select.

ACKs for top commit:
  darosior:
    re-ACK 1339898

Tree-SHA512: bf702d6b355339e96e719c1d95824e7941ac4fbaece4ec4cccd00b56ea4683ce7fb0cefc43faa5731b57e7935ef99da3a2c73b84aaeb9fa5f67703c799be2196
2024-01-23 17:33:48 +01:00
jp1ac4
1339898253
commands: include missing amount in response
The GUI uses the InsufficientFunds error to get the missing
amount when the user is creating a new spend.

It is not straightforward to extract this information in a
general way from the RPC error. Instead, this missing amount
will be included in the command response.

These changes are based on suggestions from darosior
and edouardparis.
2024-01-23 15:01:34 +00:00
pythcoiner
79177945ad add timestamp field to getinfo 2024-01-19 13:06:32 +01:00
jp1ac4
5a15c744e7
commands: return warnings from spend creation 2024-01-11 20:06:00 +00:00
edouardparis
572567a7e4 Expose ListCoinsEntry derivation_index and is_change 2023-12-11 13:35:30 +01:00
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