The other half of the implementation for AddressClient
, which allows an untrusted party to check if given addresses are of interest to the client. The client supplies a 'matcher' value, against which the addresses are checked. The matcher will produce false-positives, but never false-negatives, which means that it is impossible to accurately determine if an address belongs to the client or not.
More...
Static Public Member Functions | |
static bool | matches (byte[] matcher, byte[] addr, int match_bytes) |
Checks if the given address matches the provided 'matcher' data. More... | |
static bool | matchesAny (List< byte[]> matchers, byte[] addr, int match_bytes) |
Checks if the given addresses matches any of the provided 'matcher' data. More... | |
The other half of the implementation for AddressClient
, which allows an untrusted party to check if given addresses are of interest to the client. The client supplies a 'matcher' value, against which the addresses are checked. The matcher will produce false-positives, but never false-negatives, which means that it is impossible to accurately determine if an address belongs to the client or not.
Definition at line 11 of file AddressMatcher.cs.
|
static |
Checks if the given address matches the provided 'matcher' data.
matcher | Matcher data, as provided by the AddressClient object. |
addr | Address to check. |
match_bytes | Number of bytes to match. See remarks of AddressClient.generateHiddenMatchAddresses() . |
Definition at line 20 of file AddressMatcher.cs.
|
static |
Checks if the given addresses matches any of the provided 'matcher' data.
matchers | A list of matcher objects. |
addr | Address to check |
match_bytes | Number of bytes to use for matching. See remarks of AddressClient.generateHiddenMatchAddresses() . |
Definition at line 42 of file AddressMatcher.cs.