mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
f37956e38e
This commit modifies both the Sphinx packet generation and processing for recent updates to the API. With the version 1 Sphinx specification, the payment hash is now included in the MACs in order to thwart any potential replay attacks. As a result, any attempts to replay previous HTLC packets MUST re-use the same payment hash, meaning that the first-hop node can simply settle the HTLC immediately, thwarting the attacker. Additionally, within the Sphinx packet, each hop now gets a per-hop payload which contains the necessary details (CTLV value, fee, etc) for the node to successfully forward the payment. This per-hop payload is protected by a packet-wide MAC.
65 lines
1.5 KiB
YAML
65 lines
1.5 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
|
|
version: master
|
|
- package: github.com/grpc-ecosystem/grpc-gateway
|
|
version: ^1.1.0
|
|
- package: github.com/aead/chacha20
|
|
- package: github.com/go-errors/errors
|