Move untested code out of SDK

verify_signature() was only used in a test that was testing
binary layout. It only worked because the test transaction only
had one signature.

from() was only used by verify_signature() and that's something
we'd typically called `pubkey()`.

hash() didn't return the hash of the Transaction, as you might
guess. It's only used for PoH, so move it into Entry.
This commit is contained in:
Greg Fitzgerald
2019-03-28 13:37:41 -06:00
parent 0482f153d0
commit 2ab50cbae8
4 changed files with 16 additions and 28 deletions

View File

@@ -392,7 +392,6 @@ mod tests {
Some(sig_start as usize)
);
assert_eq!(sig_len, 1);
assert!(tx.verify_signature());
}
#[test]