tests(sinsemilla): Minor changes to sinsemilla tests (#8128)

* add `sinsemilla_` prefix to sinsemilla tests

* replace non working link
This commit is contained in:
Alfredo Garcia 2024-01-01 20:21:13 -03:00 committed by GitHub
parent 164dfdcd1b
commit 5abbefddaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -174,7 +174,7 @@ mod tests {
#[test]
#[allow(non_snake_case)]
fn single_test_vector() {
fn sinsemilla_single_test_vector() {
use halo2::pasta::group::Curve;
let D = b"z.cash:test-Sinsemilla";
@ -206,7 +206,7 @@ mod tests {
// - Random message bits.
#[test]
#[allow(non_snake_case)]
fn hackworks_test_vectors() {
fn sinsemilla_hackworks_test_vectors() {
use halo2::pasta::group::{ff::PrimeField, GroupEncoding};
for tv in tests::vectors::SINSEMILLA.iter() {
@ -231,7 +231,7 @@ mod tests {
// - Random message contents.
#[test]
#[allow(non_snake_case)]
fn hackworks_group_hash_test_vectors() {
fn sinsemilla_hackworks_group_hash_test_vectors() {
use halo2::pasta::group::GroupEncoding;
for tv in tests::vectors::GROUP_HASHES.iter() {

View File

@ -7,7 +7,7 @@ pub struct TestVector {
pub(crate) hash: [u8; 32],
}
// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/orchard_sinsemilla.py
// From https://github.com/zcash/zcash-test-vectors/blob/master/test-vectors/rust/orchard_sinsemilla.rs
lazy_static! {
pub static ref SINSEMILLA: [TestVector; 11] = [
TestVector {