tests(sinsemilla): Minor changes to sinsemilla tests (#8128)
* add `sinsemilla_` prefix to sinsemilla tests * replace non working link
This commit is contained in:
parent
164dfdcd1b
commit
5abbefddaf
|
@ -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() {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue