Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anoncreds - Send full registry list when getting revocation states #2946

Merged
merged 1 commit into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aries_cloudagent/anoncreds/default/legacy_indy/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down