Make Ripemd160 the default

This commit is contained in:
Jae Kwon
2015-07-10 12:15:46 -07:00
parent 41845d5b85
commit 2e1d8ba054
10 changed files with 26 additions and 32 deletions

View File

@@ -314,8 +314,7 @@ func (tx *DupeoutTx) String() string {
//-----------------------------------------------------------------------------
// NOTE: the tx merkle tree uses sha256, so this TxID is really just for
// reference when using the rpc and catching events
// This should match the leaf hashes of Block.Data.Hash()'s SimpleMerkleTree.
func TxID(chainID string, tx Tx) []byte {
signBytes := account.SignBytes(chainID, tx)
return binary.BinaryRipemd160(signBytes)