diff --git a/aries_cloudagent/anoncreds/default/legacy_indy/registry.py b/aries_cloudagent/anoncreds/default/legacy_indy/registry.py index 31eca4f977..a5a89a35e2 100644 --- a/aries_cloudagent/anoncreds/default/legacy_indy/registry.py +++ b/aries_cloudagent/anoncreds/default/legacy_indy/registry.py @@ -692,7 +692,7 @@ async def _get_or_fetch_rev_reg_def_max_cred_num( def _indexes_to_bit_array(self, indexes: List[int], size: int) -> List[int]: """Turn a sequence of indexes into a full state bit array.""" - return [1 if index in indexes else 0 for index in range(1, size + 1)] + return [1 if index in indexes else 0 for index in range(0, size + 1)] async def _get_ledger(self, profile: Profile, rev_reg_def_id: str): async with profile.session() as session: