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

Kostia/change sefret key of dilithium2 #35

Merged
merged 4 commits into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions primitives/core/src/dilithium2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,6 @@ impl TraitPair for Pair {
path: Iter,
_seed: Option<Seed>,
) -> Result<(Self, Option<Seed>), Self::DeriveError> {
// let acc = self.secret.0;
// let mut seed = [0u8; 32];
// match _seed {
// Some(s) => seed.copy_from_slice(&s[0..32]),
// None => seed.copy_from_slice(&acc[0..32])
// };
let mut acc = self.secret.0;
for j in path {
match j {
Expand All @@ -462,7 +456,6 @@ impl TraitPair for Pair {

fn from_seed_slice(seed: &[u8]) -> Result<Self, SecretStringError> {
let pair: dil2::Keypair = dil2::Keypair::generate(Some(seed));
// let secret = Secret(pair.secret.to_bytes());
let public = Public(pair.public.to_bytes());

let mut arr: [u8; 32] = [0; 32];
Expand Down
Loading