-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TestSendOnion and optimize pi_t functions.
This commit fixes the TestSendOnion test by removing redundant imports and function calls. It also optimizes the pi_t functions by simplifying the encryption and decryption processes. The FormOnion function now generates a symmetric key and uses it to encrypt the payload. The peelOnionAfterRemovingPayload function now directly decrypts the payload without generating and decrypting a shared key. These changes improve the codes efficiency and readability.
- Loading branch information
1 parent
5a69ffb
commit 5a658f3
Showing
2 changed files
with
88 additions
and
125 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