Search in sources :

Example 6 with Bloom

use of org.ethereum.core.Bloom in project rskj by rsksmart.

the class LogInfo method getBloom.

public Bloom getBloom() {
    Bloom ret = Bloom.create(HashUtil.keccak256(address));
    for (DataWord topic : topics) {
        byte[] topicData = topic.getData();
        ret.or(Bloom.create(HashUtil.keccak256(topicData)));
    }
    return ret;
}
Also used : Bloom(org.ethereum.core.Bloom)

Aggregations

Bloom (org.ethereum.core.Bloom)6 Test (org.junit.Test)4 ArrayList (java.util.ArrayList)2 BlockHeader (org.ethereum.core.BlockHeader)2 RskAddress (co.rsk.core.RskAddress)1 AccountBuilder (co.rsk.test.builders.AccountBuilder)1 Account (org.ethereum.core.Account)1 Block (org.ethereum.core.Block)1 Transaction (org.ethereum.core.Transaction)1 ECKey (org.ethereum.crypto.ECKey)1