mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +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];
|
pub type SecretKey = [u8; SECRET_KEY_LENGTH];
|
||||||
|
|
||||||
/// ed25519 signing key which can be used to produce signatures.
|
/// ed25519 signing key which can be used to produce signatures.
|
||||||
// Invariant: `public` is always the public key of `secret`. This prevents the signing function
|
// Invariant: `verifying_key` is always the public key of
|
||||||
// oracle attack described in https://github.com/MystenLabs/ed25519-unsafe-libs
|
// `secret_key`. This prevents the signing function oracle attack
|
||||||
|
// described in https://github.com/MystenLabs/ed25519-unsafe-libs
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct SigningKey {
|
pub struct SigningKey {
|
||||||
/// The secret half of this signing key.
|
/// The secret half of this signing key.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue