Add comments to test vector output linking to source

This commit is contained in:
Jack Grigg 2018-05-19 07:48:49 +12:00
parent 7aebe58a58
commit c795bb6ef7
3 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,7 @@ def main():
vcrb: [u8; 32],
};
// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/sapling_generators.py
let sapling_generators = SaplingGenerators {
skb: [
%s

View File

@ -102,6 +102,7 @@ def main():
note_nf: [u8; 32],
};
// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/sapling_key_components.py
let test_vectors = vec![''')
for i in range(0, 10):
sk = SpendingKey(bytes([i] * 32))

View File

@ -85,6 +85,7 @@ def main():
rsig: [u8; 64],
};
// From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/sapling_signatures.py
let test_vectors = vec![''')
for i in range(0, 10):
sk = rj.gen_private()