A computer program product for searching multiple electronic data records within a distributed electronic data register, wherein the distributed electronic data register comprises a first valid block and a second valid block appended to a parent block in the distributed electronic data register, where both the first valid block and the second valid block each comprise a hash of the parent block, wherein a subsequent block is appended to the distributed electronic data register as a stacked block, wherein the stacked block comprises a hash stack, wherein the hash stack comprises a hash of the first valid block and a hash of the second valid block, the computer program product comprising a non-transitory computer-readable medium comprising code causing an apparatus to perform the steps of:
- receiving a query for a data record within the distributed electronic data register;
- accessing the distributed electronic data register;
- and
- executing a search function of the distributed electronic data register using a two pointer algorithm, wherein executing the search function comprises:
- traversing the distributed electronic data register two blocks at a time with a first pointer beginning with a first hash within the hash stack, and traversing the distributed electronic data register one block at a time with a second pointer beginning with a second hash within the hash stack;
- based on locating a genesis block of the distributed electronic data register using the first pointer, reversing a direction of the first pointer and traversing the distributed electronic data register one block at a time with the first pointer;
- locating the parent block within the distributed electronic data register based on identifying a convergence of the first pointer and the second pointer;
- and
- executing a linear search on each of one or more paths within the hash stack, wherein each linear search terminates at the parent block.