added basic tests around range_proof (#121)

Pass nonce in to range_proof (we need it for rewind_range_proof, at least for testing)
This commit is contained in:
AntiochP
2017-09-10 14:31:41 -04:00
committed by Ignotus Peverell
parent 6056c16cfa
commit 87cd0e5c58
5 changed files with 87 additions and 15 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ mod tests {
let outputs = vec![core::transaction::Output{
features: core::transaction::DEFAULT_OUTPUT,
commit: output_commit,
proof: ec.range_proof(0, 100, key::ZERO_KEY, output_commit)}];
proof: ec.range_proof(0, 100, key::ZERO_KEY, output_commit, ec.nonce())}];
let test_transaction = core::transaction::Transaction::new(inputs,
outputs, 5);
+1 -1
View File
@@ -892,7 +892,7 @@ mod tests {
transaction::Output{
features: transaction::DEFAULT_OUTPUT,
commit: output_commitment,
proof: ec.range_proof(0, value, output_key, output_commitment)}
proof: ec.range_proof(0, value, output_key, output_commitment, ec.nonce())}
}
/// Makes a SecretKey from a single u64