mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
566cd86a1d
This commit adds a REST interface to the existing gRPC server by employing a simple http proxy auto-generated from the existing protobuf files. Currently full-support for any streaming RPC’s are currently untested. In addition to auto-generating a REST proxy server, a swagger.json is also generated which allows for gRPC-like native objects with higher-level clients, and also for auto-generated documentation. Due to limitations with accepting raw byte strings as parameters, some RPC’s have been modified to take both raw-bytes and string arguments. Additionally a new RPC has been added ‘NewWitnessAddress’ since the proxy doesn’t currently support enum-based arguments. Currently the proxy server is embedded within the daemon as an active HTTP server, however we may want to package the proxy server as a separate binary in the future. Similarly, we may want to add additional configuration information which controls the optional inclusion of the REST proxy. Atm, just like the current gRPC interface, the REST API is fully unauthenticated. Before moving to an initial alpha release after making the necessary changes to meet the spec drafted in Milan, authentication of the RPC interfaces will be addressed.
62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
package: github.com/lightningnetwork/lnd
|
|
import:
|
|
- package: github.com/BitfuryLightning/tools
|
|
version: b36ae00916b800503504455f7afeb3159bd5ee35
|
|
subpackages:
|
|
- routing
|
|
- rt
|
|
- rt/graph
|
|
- package: github.com/boltdb/bolt
|
|
version: ^1.2.1
|
|
- package: github.com/btcsuite/btclog
|
|
- package: github.com/btcsuite/fastsha256
|
|
- package: github.com/btcsuite/go-flags
|
|
- package: github.com/btcsuite/seelog
|
|
version: ^2.1.0
|
|
- package: github.com/codahale/chacha20poly1305
|
|
- package: github.com/davecgh/go-spew
|
|
subpackages:
|
|
- spew
|
|
- package: github.com/golang/protobuf
|
|
subpackages:
|
|
- proto
|
|
- package: github.com/howeyc/gopass
|
|
- package: github.com/roasbeef/btcd
|
|
subpackages:
|
|
- blockchain
|
|
- btcec
|
|
- btcjson
|
|
- chaincfg
|
|
- txscript
|
|
- wire
|
|
- package: github.com/roasbeef/btcrpcclient
|
|
- package: github.com/roasbeef/btcutil
|
|
subpackages:
|
|
- bloom
|
|
- coinset
|
|
- hdkeychain
|
|
- txsort
|
|
- package: github.com/roasbeef/btcwallet
|
|
version: master
|
|
subpackages:
|
|
- chain
|
|
- waddrmgr
|
|
- wallet
|
|
- walletdb/bdb
|
|
- package: github.com/urfave/cli
|
|
version: ^1.18.0
|
|
- package: golang.org/x/crypto
|
|
subpackages:
|
|
- hkdf
|
|
- nacl/secretbox
|
|
- ripemd160
|
|
- scrypt
|
|
- package: golang.org/x/net
|
|
subpackages:
|
|
- context
|
|
- package: google.golang.org/grpc
|
|
version: ^1.0.0
|
|
- package: github.com/lightningnetwork/lightning-onion
|
|
- package: github.com/grpc-ecosystem/grpc-gateway
|
|
version: ^1.1.0
|