Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bit of a refactor #1

Merged
merged 10 commits into from
Oct 24, 2022
Prev Previous commit
Next Next commit
Add safe comment for unwrap
  • Loading branch information
Speykious committed Oct 24, 2022
commit 6c6e8a00ad77fcc0b485b30ed937856088d01652
3 changes: 2 additions & 1 deletion src/encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ impl Keys {

Keys {
keypair,
nonce: nonce.as_bytes().try_into().unwrap(),
signature: vec![0],
// Safe to unwrap because it's all alphanumeric characters
nonce: nonce.as_bytes().try_into().unwrap(),
}
}

Expand Down