Fix tests for JoinSplit signatures

This commit is contained in:
Taylor Hornby
2016-05-30 10:53:04 -06:00
parent a138f81404
commit b48122b57b
7 changed files with 561 additions and 520 deletions

View File

@@ -215,7 +215,6 @@ public:
void Serialize(Stream& s, int nType, int nVersion) const
{
unsigned int len = pubKey.size();
assert(len == 33);
s.write((char*)pubKey.begin(), len);
}
@@ -236,8 +235,6 @@ public:
= {'Z','c','a','s','h','E','C','D','S','A','P','u','b','K','e','y'};
uint256 hash;
assert(pubKey[0] == 2 || pubKey[0] == 3);
assert(pubKey.size() == 33);
if (crypto_generichash_blake2b_salt_personal(hash.begin(), 32,
pubKey.begin(), pubKey.size(),
NULL, 0, // No key.