Hash "Zcash" to align tests with ZIP 215 test vectors.
This commit is contained in:
parent
c3b3e07160
commit
a9d80b0750
|
@ -38,7 +38,7 @@ void ZIP215Check(
|
||||||
std::vector<unsigned char> pubkey_hex = ParseHex(pubkey);
|
std::vector<unsigned char> pubkey_hex = ParseHex(pubkey);
|
||||||
std::vector<unsigned char> sig_hex = ParseHex(sig);
|
std::vector<unsigned char> sig_hex = ParseHex(sig);
|
||||||
|
|
||||||
std::string msg; // message doesn't matter, S = 0
|
std::string msg("Zcash"); // message doesn't matter, S = 0
|
||||||
|
|
||||||
int expected_legacy = 0;
|
int expected_legacy = 0;
|
||||||
int expected_zip215 = 0;
|
int expected_zip215 = 0;
|
||||||
|
@ -228,7 +228,7 @@ TEST(ConsensusTests, ZIP215TestVectors) {
|
||||||
ZIP215Check(
|
ZIP215Check(
|
||||||
"c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a",
|
"c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a",
|
||||||
"26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc850000000000000000000000000000000000000000000000000000000000000000",
|
"26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc850000000000000000000000000000000000000000000000000000000000000000",
|
||||||
false, // This doesn't match the vectors originally provided by Henry.
|
true,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
ZIP215Check(
|
ZIP215Check(
|
||||||
|
@ -540,7 +540,7 @@ TEST(ConsensusTests, ZIP215TestVectors) {
|
||||||
ZIP215Check(
|
ZIP215Check(
|
||||||
"26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85",
|
"26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85",
|
||||||
"26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc850000000000000000000000000000000000000000000000000000000000000000",
|
"26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc850000000000000000000000000000000000000000000000000000000000000000",
|
||||||
false, // This doesn't match the vectors originally provided by Henry.
|
true,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
ZIP215Check(
|
ZIP215Check(
|
||||||
|
@ -913,7 +913,7 @@ TEST(ConsensusTests, ZIP215TestVectors) {
|
||||||
ZIP215Check(
|
ZIP215Check(
|
||||||
"edffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
"edffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
||||||
"00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",
|
"00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",
|
||||||
true, // This is different from the test vectors originally provided by Henry.
|
false,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
ZIP215Check(
|
ZIP215Check(
|
||||||
|
|
Loading…
Reference in New Issue