eth/common.go
func BalanceClosingHash(clientAddr, pscAddr common.Address, block uint32,
	offeringHash common.Hash, balance uint64) []byte {
	blockBytes := data.Uint32ToBytes(block)
	balanceBytes := data.Uint64ToBytes(balance)
	return crypto.Keccak256(
		[]byte("\x19Ethereum Signed Message:\n32"),
		crypto.Keccak256(
			[]byte("Privatix: receiver closing signature"),
			clientAddr.Bytes(),
			blockBytes[:],
			offeringHash.Bytes(),
			balanceBytes[:],
			pscAddr.Bytes(),
		),
	)
}
func BalanceClosingHash(clientAddr, pscAddr common.Address, block uint32,
	offeringHash common.Hash, balance uint64) []byte {
	blockBytes := data.Uint32ToBytes(block)
	balanceBytes := data.Uint64ToBytes(balance)
	return crypto.Keccak256(
		[]byte("\x19Ethereum Signed Message:\n32"),
		crypto.Keccak256(
			[]byte("Privatix: receiver closing signature"),
			clientAddr.Bytes(),
			blockBytes[:],
			offeringHash.Bytes(),
			balanceBytes[:],
			pscAddr.Bytes(),
		),
	)
}
func BalanceClosingHash ( clientAddr , pscAddr common . Address , block uint32 , offeringHash common . Hash , balance uint64 ) [ ] byte { blockBytes := data . Uint32ToBytes ( block ) balanceBytes := data . Uint64ToBytes ( balance ) return crypto . Keccak256 ( [ ] byte ( " \x19 \n " ) , crypto . Keccak256 ( [ ] byte ( " " ) , clientAddr . Bytes ( ) , blockBytes [ : ] , offeringHash . Bytes ( ) , balanceBytes [ : ] , pscAddr . Bytes ( ) , ) , ) }
// BalanceClosingHash computes balance message hash.
BalanceClosingHash computes balance message hash .