Commit Graph

23 Commits (master)

Author SHA1 Message Date
Boris Nagaev 368432ebb4
looprpc,swapserverrpc: update Go image to 1.21.9-bookworm
This is needed to update protobuf. Version 1.33 breaks in Go 1.16 with
the following error: "//go:build comment without // +build comment".

Distribution was updated from buster (10) to bookworm (12).
protoc was updated from v3.6.1 to v3.21.12.
2 weeks ago
sputn1ck 85e74adf5a
swapserverrpc: add instantout quote req 3 months ago
sputn1ck 932a55aaf6
swapserverrpc: add instantout service 3 months ago
Slyghtning 0db65f4079
version: static address protocol versions 3 months ago
George Tsagkarelis 23d308c74f
swapserverrpc: add prevouts to MuSig2SignSweep req 4 months ago
sputn1ck 73d5cf5bf9
swapserverrpc add ReservationServer
This commit adds the ReservationServer service to the proto definitions.
4 months ago
sputn1ck 6d5d21075f
swapserverrpc: Add Fetchl402 call
This commit adds a new FetchL402 call which allows a client to retrieve
a l402 token from the loop server.
5 months ago
Slyghtning 8612912e97
looprpc: abandon swap api
swaprpc: abandon swap api
6 months ago
dependabot[bot] b8050a150b
build(deps): bump google.golang.org/grpc in /swapserverrpc
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.53.0 to 1.56.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.53.0...v1.56.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
7 months ago
George Tsagkarelis 1d47bef3a8
looprpc: update server proto files 10 months ago
Slyghtning 647333ac64
looprpc: account field for LoopOutRequest 10 months ago
dependabot[bot] a2b2650e62
build(deps): bump google.golang.org/grpc in /swapserverrpc
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.38.0 to 1.53.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.38.0...v1.53.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
10 months ago
Andras Banki-Horvath b47f67a6de
loopin: push the htlc internal key if the invoice is swept
This commit adds key reveal to MuSig2 loopin swaps' success path. In
this case the client reveals their internal HTLC key to the server when
the swap invoice is settled. With this key the server can sweep the swap
HTLC without any more interaction from the client. We'll do this every
block (after the invoice has been settled).
1 year ago
Andras Banki-Horvath cc5e26b9c9
proto: extend protocol with key reveal building blocks and new version
This commit adds a new protocol version which will add MuSig2 loop in
and loop out using key reveal and extends the existing protocol with new
message members to be able to pass around htlc internal public keys.

The commit also fixes some minor formatting issues in the server proto.
1 year ago
Andras Banki-Horvath f8da106338
loopout: use psbt when obtaining the MuSig2 signature
In this commit we deprecate the sighash field from the
MuSig2SignSweepReq request in favour of using a psbt serialized sweep
transaction instead. This way the sever gains full transparency about
client sweep requests and can assemble the sighash to sign on its own.
2 years ago
Andras Banki-Horvath 32557a57ea
swapserverrpc: add MuSig2SignSweep function 2 years ago
Andras Banki-Horvath 1abbe648d1
rpc: fix swapserverrpc build 2 years ago
Andras Banki-Horvath 9b37d744a0
multi: add ProtocolVersion_HTLC_V3 2 years ago
yyforyongyu dfbd01988e
swapserverrpc: update server swap state 2 years ago
Andras Banki-Horvath 0f002733f6
loop: extend server protocol for routing plugin recommendations
This commits extends the server protocol with routing plugin
recommendations and routing result reporting.
2 years ago
carla 8d0e9a2671
swapserverrpc: remove unnecessary vars in proto dockerfile 2 years ago
carla a9e774898f
swapserverrpc: make swapserverrpc its own module
To make it possible to replace the swapserverrpc module in the server,
we declare it as its own submodule. This allows the server to make
changes to its local protos (and replace loop's copy with the local
version), to use changes that are not yet merged to the client repo.
2 years ago
carla dad103530f
multi: move server proto files to their own directory
Protobuf does not allow naming conflicts for files within the same
process, because all proto messages register themselves in a global
registry.

This is problematic because the server's itests import the client's
looprpc package to make rpc queries to the loopd client, thus importing
duplicate common.proto and server.proto from the client's looprc package
(since they're both in there as well).

This change moves the server's proto files into their own directory so
that they are not imported when we want to use the client's files. We
cannot change the package name for the server, because that would be
a breaking change (the package name is included in URIS). Fortunately,
we have the go_package option which allows us to place generated files
in a different location.
2 years ago