Commit Graph

954 Commits (lnd-15-final)
 

Author SHA1 Message Date
Oliver Gugger 08209f61e3
multi: bump lndclient and lnd version to latest 2 years ago
András Bánki-Horváth 490fb352ff
Merge pull request #507 from ellemouton/movePermsToOwnDir
loopd: move RequiredPermissions to dedicated dir
2 years ago
Elle Mouton 8ccd35e0c1
loopd: move RequiredPermissions to dedicated dir
This commit moves the RequiredPermissions map to its own directory so
that projects importing the permissions list dont need to import all the
dependencies of the loopd package.
2 years ago
András Bánki-Horváth 5b5dfc0f5e
Merge pull request #506 from bhandras/sweeper-htlcv3
sweep: fill sign method when script spending a taproot htlc
2 years ago
Andras Banki-Horvath c9bc10ef76
sweep: fill sign method when script spending a taproot htlc 2 years ago
András Bánki-Horváth 8f23c6789b
Merge pull request #477 from bhandras/taproot-htlc
multi: changes to the taproot HTLC  required for both client and server
2 years ago
Alex Bosworth 0f9abbc29a
Merge pull request #505 from lightninglabs/v0.19.0-bump
version: bump version to v0.19.1-beta
2 years ago
Alex Bosworth 96f1fe5bec
version: bump version to v0.19.1-beta 2 years ago
Carla Kirk-Cohen c7ef4297c0
multi: update sweeping to allow different sighashes and claim scripts
Taproot spends require a different sighash, so we update our HtlcScript
interface to provide the appropriate sighash when sweeping. We also add
distinct Timeout/Success Script functions to allow for tapleaf spends
which have different locking scripts for different paths. Note that the
timeout and success paths will be the same for segwit v0 htlcs, because
it has a single branched script containing all spend paths.

In future iterations, this differentiation of claim scripts can also
be used to use musig2 to collaboratively keyspend P2TR htlcs with the
server. This script can be expressed as PriorityScript (because we'll
try to keyspend as a priority, and then fall back to a tap leaf spend).
As we've done here, segwit v0 spends would just return their single
script for PriorityScript, and the claim would be no different from
our other claims.
2 years ago
Andras Banki-Horvath 9610becebd
multi: add the aggregate internal pubkey to the v3 htlc 2 years ago
Carla Kirk-Cohen 638973dce2
swap: add locking conditions to HtlcScript interface
Use of the Script() function is problematic when we introduce taproot
because our script will vary depending whether we use keyspend or a
tapleaf spend path (and on the tapleaf spent). This has not previously
been a problem for segwitv0 scripts, because they contain all of the
logical branches for each of our spend conditions in a single script.

This commit prepares for removal of the Script() function by moving
our address/pkScript/sigScript generation (which need Script()) into
each script's implementation of the HtlcScript interface so that
they have access to the script directly.
2 years ago
Konstantin Nick 3931c27043
Merge pull request #504 from sputn1ck/fix_suggest_swaps_rpc
looprpc: fix suggestswaps response
2 years ago
sputn1ck 950b32dea6
multi: update version and release notes 2 years ago
sputn1ck 1df6685653
looprpc: fix suggestswaps response
This commit fixes the SuggestSwaps rpc call. Previously, when multiple
DisqualifiedPeers were provided, all pubkeys would be the same.
2 years ago
Yong dfe50e44ef
Merge pull request #493 from yyforyongyu/db-params
liquidity: persist manager's params to disk
2 years ago
yyforyongyu 2da38230a5
docs: update release note 2 years ago
yyforyongyu 425a007aaf
loopd+liquidity: persist parameters on disk
This commit saves the RPC request used to construct the `Parameters` on
disk. Since it's a proto message, an easy way to read/write it is to
rely on the proto marshal/unmarshal methods. A side effect is that
migration also becomes easy as proto message have its own internal
mechanism to keep track of the compatibility.
2 years ago
yyforyongyu 26edd21889
loopdb: add new bucket to save liquidity params
This commit adds a new bucket to save liquidity parameters. We've
skipped the serialization and deserialization implementations here and
leave them to be handled by the liquidity package.
2 years ago
yyforyongyu 8217ee31c3
liquidity+loopd: refactor `SetParameters` to take a rpc request
This commit refactors the method `manager.SetParameters` to take a
`SetLiquidityParamsRequest`. As we'll see in the following commit, this
will enable us saving the params to disk more easily.
2 years ago
yyforyongyu 9c5ac0fb36
liquidity: move parameters into a new file
This commit refactors the `liquidity` by moving `Parameters` related
code into one file.
2 years ago
András Bánki-Horváth a4d343ca1b
Merge pull request #501 from lightninglabs/lnd-15
multi: bump all dependency to use lnd 0.15.0-beta.rc4
2 years ago
Oliver Gugger d5952f1202
multi: bump all dependency to use lnd 0.15.0-beta.rc4
This commit bumps all dependencies to be in line with what's required
for the current release candidate of lnd 0.15.0-beta.
2 years ago
András Bánki-Horváth 14dfdc8521
Merge pull request #500 from sputn1ck/update_listswaps_api
Include provided last_hop and outgoing_chan_set to listswaps rpc
2 years ago
sputn1ck ece0f76e7f
loop: update listswaps api 2 years ago
sputn1ck efb6f75d60
swap: add lasthop, outgoingchanids to swapinfo 2 years ago
Yong e98d813885
Merge pull request #495 from sputn1ck/check_p2pk_dest
loopout: reject P2PK addresses
2 years ago
Oliver Gugger 6d1708de68
Merge pull request #496 from sputn1ck/dockerize_linter
Dockerize linter, add gosimports
2 years ago
sputn1ck ce596468e9
loopout: reject unsupported address formats
This commit adds a check to reject unsupported address
formats such as P2PK or P2TR addresses
2 years ago
sputn1ck a34f22c443
make fmt 2 years ago
sputn1ck 4ed3197985
make+tools: tidy makefile, add gosimports 2 years ago
sputn1ck a1271fee40
multi: fix linter issues 2 years ago
sputn1ck f0bf9302cc
make: dockerize linter 2 years ago
András Bánki-Horváth 1741896e33
Merge pull request #487 from C-Otto/master 2 years ago
Carsten Otto b0044e0994 loopout: remove double space in log message 2 years ago
Oliver Gugger dee7542b36
Merge pull request #485 from thinkmassive/github-workflow-docker
github: initial docker workflow
2 years ago
Alex Miller dd01b90afd
github: initial docker workflow
Builds a Docker image for tags starting with 'v'

The image repository name is defined by environment variable DOCKER_REPO, which
defaults to: lightninglabs/loop

To override it, if you want to publish the image to your own DockerHub account,
define a Github Actions secret named DOCKER_REPO with the full image repo name
such as: <docker_user>/loop
2 years ago
Harsha Goli 6deed23a18
Merge pull request #482 from arshbot/HtlcV3-taproot-base
swap: HTLCV3 added
2 years ago
Harsha Goli dec6dd7e70
swap: HTLCV3 added
In this commit we add the version 3 htlc, which is implemented with
taproot script spending the two payment paths: the claim path case, and
the timeout case.
2 years ago
Harsha Goli 968676c956
Merge pull request #481 from lightninglabs/revert-473-HtlcV3-taproot-base
Revert "swap: HTLCV3 added"
2 years ago
Harsha Goli 803e668d70
Revert "swap: HTLCV3 added" 2 years ago
Harsha Goli 5446a1f217
Merge pull request #473 from arshbot/HtlcV3-taproot-base
swap: HTLCV3 added
2 years ago
Harsha Goli 173c213a66
swap: HTLCV3 added
In this commit we add the version 3 htlc, which is implemented with
taproot script spending the two payment paths: the claim path case, and
the timeout case.
2 years ago
Harsha Goli cee607f6a2
swap: refactor NewHtlc so pkScript is generatred per output 2 years ago
András Bánki-Horváth fd811a8ded
Merge pull request #480 from bhandras/docker-fix 2 years ago
Andras Banki-Horvath e2ff490fe5
docker: add support for multiarch builds 2 years ago
Alex Bosworth b5e7e3ded8
Merge pull request #476 from lightninglabs/v0.18.0-bump
version: bump version to v0.18.0-beta
2 years ago
Alex Bosworth bf7d157193
version: bump version to v0.18.0-beta 2 years ago
Oliver Gugger 6984fc61a4
Merge pull request #456 from MarnixCroes/loop-2022
Update LICENSE
2 years ago
Oliver Gugger deec719dfc
Merge pull request #472 from lightninglabs/btcec-v2-btcutil-bump
multi: bump btcec/v2 and btcutil to new versions
2 years ago
Oliver Gugger 5f46d0b83f
travis+docker: bump golang version to v1.17.x 2 years ago