Secret validation #52
Labels
bug
Something isn't working
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
the proof field secret, defined in
crates/nuts/src/nut00/secret.rs
is just a random[u8; 32]
hex encoded into a string.Meaning it can only ever be 64 chars long (hex encoding uses 2 chars per bytes), with char in the [0..9], [a..f] and [A..F] range.
Make sure it is not possible to construct one without respecting those conditions.
I believe the functions
and
to be really problematic in this regard
The text was updated successfully, but these errors were encountered: