Skip to content

Indexer Readme

user_name edited this page May 3, 2023 · 3 revisions

Transaction Indexer

txIndexer implementation uses a KVStore (interface) to index the transactions.

Index Types

Key Index Value Description
HASHKEY h/SHA3(TransactionProtoBytes) IndexedTransactionProtoBytes store value by hash (the key here is equivalent to the VALs below)
HEIGHTKEY b/height/txIndex HASHKEY store hashKey by height
SENDERKEY s/senderAddr HASHKEY store hashKey by sender
RECIPIENTKEY r/recipientAddr HASHKEY store hashKey by recipient (if not empty)

ELEN Index

The height/txIndex store uses ELEN. This is to ensure the results are stored sorted (assuming the KVStore uses a byte-wise lexicographical sorting).

Clone this wiki locally