-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #396: Obfuscate shared secret when printing
cf6badf Obfuscate SharedSecret when printing (Tobin Harding) e4be664 Improve rustdocs for displaying secrets (Tobin Harding) 5c7c76e Rename serialize_secret -> secret_bytes (Tobin Harding) 4ded2c0 Use byte instead of i (Tobin Harding) 91106f5 Remove magic number (Tobin Harding) 6dca996 Mention bitcoin_hashes in obfuscated secret msg (Tobin Harding) Pull request description: Currently printing the `SharedSecret` using `Display` or `Debug` prints the real secret, this is sub-optimal. We have a solution for other secrets in the project where printing is obfuscated and we provide a `display_secret` method for explicitly printing. Mirror the logic for other secrets and obfuscate the `SharedSecret` when printing. - Patches 1 - 5: Clean up. - Patch 6: The meat and potatoes. This is the final change needed to: Resolve: #226 ACKs for top commit: apoelstra: ACK cf6badf Tree-SHA512: df14e8c5f5815bd76c585a1cd1db42fab6858004ca2cafa9a158b8b04a44c4a11b1260374a6ff82fee540ca955f262b28efae023012de5ac3832e4f5d1d1815e
- Loading branch information
Showing
3 changed files
with
83 additions
and
39 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