This commit is contained in:
Rostyslav Tyshko 2024-12-02 02:17:34 +01:00
parent 91786d6b7e
commit 4363543cf0
2 changed files with 0 additions and 2 deletions

View File

@ -42,7 +42,6 @@ pub fn commit(comm: &CommitmentSecrets, tag: Tag) -> PedersenCommitment {
PedersenCommitment::new(SECP256K1, comm.value, comm.value_blinding_factor, generator)
}
// Hash function placeholder (replace with your cryptographic library's hash).
fn hash(input: &[u8]) -> Vec<u8> {
Sha256::digest(input).to_vec()
}

View File

@ -42,7 +42,6 @@ pub fn commit(comm: &CommitmentSecrets, tag: Tag) -> PedersenCommitment {
PedersenCommitment::new(SECP256K1, comm.value, comm.value_blinding_factor, generator)
}
// Hash function placeholder (replace with your cryptographic library's hash).
fn hash(input: &[u8]) -> Vec<u8> {
Sha256::digest(input).to_vec()
}