-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
invalid_onion_blinding
for failures
We must use the `invalid_onion_blinding` failure code whenever we reject a blinded payment to protect against probing. We also need to send `update_fail_malformed_htlc` instead of `update_fail_htlc`, to avoid encrypting an error with our real `node_id`. When rejecting a blinded pay-to-open attempt, we also must avoid encrypting a normal error with our `node_id`: we instead return an empty error reason, that the introduction node will convert to an `invalid_onion_blinding` error.
- Loading branch information
Showing
3 changed files
with
92 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters