Skip to content

Commit

Permalink
expose seed_hex
Browse files Browse the repository at this point in the history
  • Loading branch information
pdtfh committed Nov 27, 2024
1 parent 3d71579 commit f266248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn derive_field(seed_hex: &[u8; 64], suffix: &[u8]) -> Field {
Field::try_from_be_slice(hasher.finalize().as_ref()).unwrap() % MODULUS
}

fn seed_hex(seed: &[u8]) -> [u8; 64] {
pub fn seed_hex(seed: &[u8]) -> [u8; 64] {
let mut hasher = Sha256::new();
hasher.update(seed);
let bytes: [u8; 32] = hasher.finalize().into();
Expand Down

0 comments on commit f266248

Please sign in to comment.