Skip to content

Commit

Permalink
Improve comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Feb 27, 2025
1 parent a7d813c commit 48d3153
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export const DEFAULT_BLOCK_COUNT = 4096;
export const DEFAULT_BLOCK_SIZE = 32;

// default `TerseBitstringStatusList` list count is 32-bit integer size
// divided by default list size = 2^32/2^26 = 2^6 = 64; each list
// divided by default list size = 2^32/2^26 = 2^6 = 64; each list will
// be 2^26 in size = 67108864
export const DEFAULT_TERSE_LIST_COUNT = 64;

// maximum number of cryptosuites to be used in a proof set
Expand All @@ -18,6 +19,8 @@ export const DEFAULT_LIST_SIZE = DEFAULT_BLOCK_COUNT * DEFAULT_BLOCK_SIZE;
// unencrypted list can be (8MiB) without breaking the max 10MiB storage
// barrier for a single VC -- leaving 2MiB of space for other information
// beyond the list in a status list credential
// 2^26/2^3/2^10/2^10=2^3 = 8
// 67108864 bits / 8 / 1024 / 1024 = 8MiB
export const MAX_LIST_SIZE = 67108864;

// maximum number of lists this software can keep track of (applies only to
Expand Down

0 comments on commit 48d3153

Please sign in to comment.