Skip to content

Commit

Permalink
add explanatory comment on BBS+ indexes error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
FilippoTrotter authored and jaromil committed Oct 24, 2024
1 parent 5e07c0c commit 1c9da4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/crypto_bbs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ local function core_proof_gen(ciphersuite, pk, signature, generators, header, ph
local disclosed_messages = {}
local undisclosed_messages = {}
for i, v in ipairs(disclosed_indexes) do
if i > 1 and disclosed_indexes[i] == disclosed_indexes[i - 1] then
if i > 1 and disclosed_indexes[i] == disclosed_indexes[i - 1] then --Arrays are always sorted in proof_gen (line 684) before being passed as input to core_proof_gen
error('disclosed indexes contains duplicates', 3)
end
table.insert(disclosed_messages, messages[v])
Expand Down

0 comments on commit 1c9da4e

Please sign in to comment.