Skip to content

Commit

Permalink
prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Janis Erdmanis committed Sep 8, 2024
1 parent 734c50e commit 3d23cde
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ version = "0.3.2"
[deps]
CryptoGroups = "bc997328-bedd-407e-bcd3-5758e064a52d"
CryptoPRG = "d846c407-34c1-46cb-aa27-d51818cc05e2"
CryptoUtils = "04afed74-ac16-11e9-37b6-1352e3e05830"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SigmaProofs = "f8559b4c-f045-44a2-8db2-503e40bb7416"

Expand All @@ -15,6 +16,7 @@ SigmaProofs = {path = "SigmaProofs"}
[compat]
CryptoGroups = "0.5"
CryptoPRG = "0.1"
CryptoUtils = "0.1.1"
julia = "1"

[extras]
Expand Down
2 changes: 2 additions & 0 deletions src/ShuffleProofs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ function __init__()
CryptoGroups.set_strict_mode(true)
end

include("../SigmaProofs/src/SigmaProofs.jl")

include("utils.jl") # Common functions
include("prover.jl")
include("parser.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/prover.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using CryptoGroups.Utils: @check
using CryptoGroups: Group, order, modulus
using SigmaProofs.ElGamal: Enc, Dec, ElGamalRow
using .SigmaProofs.ElGamal: Enc, Dec, ElGamalRow

abstract type Proposition end
abstract type Proof end
Expand Down
2 changes: 1 addition & 1 deletion src/verifier.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using SigmaProofs.GeneratorBasis: generator_basis
using .SigmaProofs.GeneratorBasis: generator_basis
using CryptoPRG.Verificatum: HashSpec, PRG, RO, ROPRG
using CryptoGroups: Group, PGroup, ECGroup

Expand Down
2 changes: 1 addition & 1 deletion test/braid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ using Test

import ShuffleProofs: prove, verify, decrypt, ProtocolSpec, shuffle, ShuffleProofs, braid, load
import CryptoGroups: PGroup, CryptoGroups, @ECGroup
import SigmaProofs.ElGamal: Enc, Dec, ElGamalRow
import ShuffleProofs.SigmaProofs.ElGamal: Enc, Dec, ElGamalRow

SPEC = "$(@__DIR__)/validation_sample/verificatum/MODP/protInfo.xml"
verifier = load(ProtocolSpec, SPEC)
Expand Down
2 changes: 1 addition & 1 deletion test/proof.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Test

import CryptoGroups: @PGroup, @ECGroup
import SigmaProofs.ElGamal: ElGamalRow, Enc, Dec
import ShuffleProofs.SigmaProofs.ElGamal: ElGamalRow, Enc, Dec
import CryptoGroups

import ShuffleProofs: prove, verify, Simulator, gen_shuffle, Verifier, PoSChallenge, Shuffle, shuffle, VShuffleProof, PoSProof
Expand Down
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ using SafeTestsets
using CryptoGroups
CryptoGroups.set_strict_mode(true)

# @safetestset "SigmaProofs tests" begin
# include("../test/runtests.jl")
# end

@safetestset "Number conversations" begin
include("utils.jl")
end
Expand Down
2 changes: 1 addition & 1 deletion test/verificatum-prover.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using Test
import ShuffleProofs: prove, verify, Simulator, gen_shuffle, Verifier, PoSChallenge, Shuffle, shuffle, VShuffleProof, PoSProof, ProtocolSpec, gen_roprg, load

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

SPEC = "$(@__DIR__)/validation_sample/verificatum/MODP/protInfo.xml"
verifier = load(ProtocolSpec, SPEC)
Expand Down
2 changes: 1 addition & 1 deletion test/verificatum_schema/ciphertexts.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Test
import ShuffleProofs: decode, encode, Tree, unmarshal, marshal_publickey, unmarshal_publickey, unmarshal_privatekey
import CryptoGroups: PGroup
import SigmaProofs.ElGamal: Dec, ElGamalRow
import ShuffleProofs.SigmaProofs.ElGamal: Dec, ElGamalRow


CIPHERTEXT_FILE = "$(@__DIR__)/../validation_sample/verificatum/MODP/ciphertexts"
Expand Down
2 changes: 1 addition & 1 deletion test/verificatum_schema/ecparser.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Tesing internals for elliptic curve parsing with verificatum
using Test

import SigmaProofs.ElGamal: ElGamalRow
import ShuffleProofs.SigmaProofs.ElGamal: ElGamalRow
import ShuffleProofs: marshal_s_Gq, unmarshal, decode, marshal, unmarshal_publickey, marshal_publickey, marshal_privatekey, unmarshal_privatekey, load_verificatum_proposition, load_verificatum_proof, load_verificatum_simulator, ro_prefix, verify

s_Gq = "com.verificatum.arithm.ECqPGroup(P-256)::00000000020100000020636f6d2e766572696669636174756d2e61726974686d2e4543715047726f75700100000005502d323536"
Expand Down
2 changes: 1 addition & 1 deletion test/verificatum_schema/proofparser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ShuffleProofs: decode, convert, unmarshal_publickey, interpret, Tree, enc
import CryptoGroups: PGroup, value, order, CryptoGroups#, bitlength #, outlen
import CryptoPRG: HashSpec
import CryptoPRG.Verificatum: RO, PRG
import SigmaProofs.ElGamal: ElGamalRow
import ShuffleProofs.SigmaProofs.ElGamal: ElGamalRow

function ro_prefix(protinfo::AbstractDict; auxsid="default")

Expand Down

0 comments on commit 3d23cde

Please sign in to comment.