mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Fix variable names in the invariant description (#573)
Previously the variable names referred to `public` and `secret` which do not exist. Update them to `verifying_key` and `secret_key`.
This commit is contained in:
parent
5c5a32057c
commit
135476c9f5
1 changed files with 3 additions and 2 deletions
|
|
@ -55,8 +55,9 @@ use crate::{
|
|||
pub type SecretKey = [u8; SECRET_KEY_LENGTH];
|
||||
|
||||
/// ed25519 signing key which can be used to produce signatures.
|
||||
// Invariant: `public` is always the public key of `secret`. This prevents the signing function
|
||||
// oracle attack described in https://github.com/MystenLabs/ed25519-unsafe-libs
|
||||
// Invariant: `verifying_key` is always the public key of
|
||||
// `secret_key`. This prevents the signing function oracle attack
|
||||
// described in https://github.com/MystenLabs/ed25519-unsafe-libs
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct SigningKey {
|
||||
/// The secret half of this signing key.
|
||||
|
|
|
|||
Loading…
Reference in a new issue