revault / revault-gui

Revault terminal
https://revault.dev
BSD 3-Clause "New" or "Revised" License
51 stars 8 forks source link

Hex validation for `PrivateNoiseKey`. #367

Closed Zshan0 closed 2 years ago

Zshan0 commented 2 years ago

The input of PrivateNoiseKey present here currently is only constraining the input to 64 bytes, but doesn't check if the string is a valid hex sequence.

Based on the implementation of the validation for noise_key for DefineCoordinator present here the validation for hex sequence have been made as requested in #348