Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Janis Erdmanis committed Oct 31, 2024
1 parent 0b1a581 commit 292f7ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/braid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Base.:(==)(x::Braid{G}, y::Braid{G}) where G <: Group = x.shuffle == y.shuffle &
function Base.permute!(braid::Braid, perm::AbstractVector{<:Integer})

# Mutations are not that simple here as struct may hold a pointer to the same reference hence permutation needs to be skipped here
if !(braid.decryption.cyphertexts === braid.shuffle.𝐞′)
if !(braid.decryption.ciphertexts === braid.shuffle.𝐞′)
permute!(braid.shuffle, perm)
end

Expand Down Expand Up @@ -44,7 +44,7 @@ function braid(Y::Vector{G}, g::G; roprg = gen_roprg(), x = gen_x(g; roprg),
return braid_proposition
end

isconsistent(braid::Braid) = braid.shuffle.𝐞′ == braid.decryption.cyphertexts
isconsistent(braid::Braid) = braid.shuffle.𝐞′ == braid.decryption.ciphertexts

function verify(braid::Braid, 𝐫′::Vector{<:Integer}, 𝛙::Vector{<:Integer}, x::Integer)

Expand Down
2 changes: 1 addition & 1 deletion test/verificatum-prover.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using Test
import ShuffleProofs: prove, verify, Simulator, Verifier, PoSChallenge, Shuffle, shuffle, VShuffleProof, PoSProof, ProtocolSpec, gen_roprg, load

using CryptoGroups
import ShuffleProofs.SigmaProofs.ElGamal: Enc, Dec, ElGamalRow
import SigmaProofs.ElGamal: Enc, Dec, ElGamalRow

g = @ECGroup{P_192}()

Expand Down

0 comments on commit 292f7ac

Please sign in to comment.