Bloom Filter for Deposit Addresses
Overview
The Veriscope Bloom Filter (based on Redis Bloom) allows VASPs to upload their deposit addresses and limit NEW_ATTESTATION
events to attestations on those addresses.
-
Without a Bloom Filter, VASPs receive
NEW_ATTESTATION
events for all attestations and must ascertain which are "relevant attestations" that may need to be responded to -
With a Bloom Filter, VASPs receive
NEW_ATTESTATION
events for attestations on addresses in the filter
For more on the NEW_ATTESTATION
event, see our Webhook documentation and examples.
General workflow
-
Create a Bloom Filter by bulk uploading deposit addresses. In our tests, 100m addresses corresponded to just 20MB of storage space!
-
(Optional) Rescan historical attestations to identify relevant attestations that may need to be responded to
-
Append new addresses to the filter as they are created
-
Receive
NEW_ATTESTATION
events and decided whether to respond to the Originating VASP
New API Endpoints
Four new API endpoints were introduced to support the Bloom Filter and are summarized in the table below.
Endpoint | Purpose |
---|---|
|
To create a new Bloom Filter or append addresses to an existing Filter |
|
To delete an existing Bloom Filter |
|
To check specific addresses in an existing Bloom Filter |
|
To scan historical attestations against addresses in the filter. For every positive match, a |
Everything the rescan attestations endpoint is hit, a |
For more the API endpoints, see our API documentation and examples.