Java Code Examples for org.bouncycastle.util.Arrays#hashCode()
The following examples show how to use
org.bouncycastle.util.Arrays#hashCode() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BloomFilter.java From bop-bitcoin-client with Apache License 2.0 | 5 votes |
/** * add some data to the filter. * * @param data * @return */ public int add (byte[] data) { for ( int i = 0; i < hashFunctions; ++i ) { setBit ((int) ((murmurhash3bit (i, data, tweak) & 0xFFFFFFFFL) % (filter.length * 8))); } return Arrays.hashCode (data); }
Example 2
Source File: BlockHeader.java From nuls-v2 with MIT License | 4 votes |
@Override public int hashCode() { return Arrays.hashCode(getHash()); }
Example 3
Source File: Address.java From bop-bitcoin-client with Apache License 2.0 | 4 votes |
@Override public int hashCode () { return Arrays.hashCode (bytes) + type.ordinal (); }
Example 4
Source File: ECPublicKey.java From bop-bitcoin-client with Apache License 2.0 | 4 votes |
@Override public int hashCode () { return Arrays.hashCode (pub); }
Example 5
Source File: Hash.java From bop-bitcoin-client with Apache License 2.0 | 4 votes |
@Override public int hashCode () { return Arrays.hashCode (bytes); }
Example 6
Source File: Address.java From WalletCordova with GNU Lesser General Public License v2.1 | 4 votes |
@Override public int hashCode () { return Arrays.hashCode (bytes) + type.ordinal (); }
Example 7
Source File: BloomFilter.java From bop-bitcoin-client with Apache License 2.0 | 3 votes |
/** * Serialize and add a transaction output to a filter * * @param hash * - transaction hash * @param ix * - output order number * @return */ public int addOutpoint (String hash, long ix) { byte[] point = serializedOutpoint (hash, ix); add (point); return Arrays.hashCode (point); }