コード例 #1
0
ファイル: validator.go プロジェクト: hartct/toadserver
func (v *Validator) Hash() []byte {
	return wire.BinaryRipemd160(v)
}
コード例 #2
0
ファイル: tx.go プロジェクト: hartct/toadserver
// This should match the leaf hashes of Block.Data.Hash()'s SimpleMerkleTree.
func TxID(chainID string, tx Tx) []byte {
	signBytes := acm.SignBytes(chainID, tx)
	return wire.BinaryRipemd160(signBytes)
}