Skip to content
Snippets Groups Projects
Unverified Commit da7c453c authored by priyawadhwa's avatar priyawadhwa Committed by GitHub
Browse files

Return virtual index when creating and getting a log entry (#725)


* Return virtual index when creating and getting a log entry

Use the virtual index when signing an entry on creation, and return that to the end user.
There shouldn't be any observable difference here at the moment, until we actually shard the log.

Signed-off-by: default avatarPriya Wadhwa <priya@chainguard.dev>

* Remove pointer to logRanges so value can't be modified

Also make all fields private and only accessible via funcition calls

Signed-off-by: default avatarPriya Wadhwa <priya@chainguard.dev>

* Fix virtual log index bug when getting indicies in inactive shards

Signed-off-by: default avatarPriya Wadhwa <priya@chainguard.dev>
parent 17c69a72
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment