Ixian SDK
IXICore.AddressMatcher Class Reference

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...
 

Detailed Description

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.

Member Function Documentation

◆ matches()

static bool IXICore.AddressMatcher.matches ( byte []  matcher,
byte []  addr,
int  match_bytes 
)
static

Checks if the given address matches the provided 'matcher' data.

Parameters
matcherMatcher data, as provided by the AddressClient object.
addrAddress to check.
match_bytesNumber of bytes to match. See remarks of AddressClient.generateHiddenMatchAddresses().
Returns
True, if the address matches (may be a false positive)

Definition at line 20 of file AddressMatcher.cs.

◆ matchesAny()

static bool IXICore.AddressMatcher.matchesAny ( List< byte[]>  matchers,
byte []  addr,
int  match_bytes 
)
static

Checks if the given addresses matches any of the provided 'matcher' data.

Parameters
matchersA list of matcher objects.
addrAddress to check
match_bytesNumber of bytes to use for matching. See remarks of AddressClient.generateHiddenMatchAddresses().
Returns
True, if the address matches any of the matchers (may be a false positive)

Definition at line 42 of file AddressMatcher.cs.


The documentation for this class was generated from the following file: