Skip to content

Commit

Permalink
change module name
Browse files Browse the repository at this point in the history
  • Loading branch information
vmidyllic committed Dec 3, 2021
1 parent bc654ba commit 3b963a6
Show file tree
Hide file tree
Showing 19 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion circuits/verification_keys.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package circuits

import (
"github.com/iden3/go-auth/types"
"github.com/iden3/go-iden3-auth/types"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions communication/auth/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package auth

import (
"fmt"
"github.com/iden3/go-auth/communication/protocol"
"github.com/iden3/go-auth/proofs/signature"
"github.com/iden3/go-auth/proofs/zeroknowledge"
"github.com/iden3/go-auth/types"
"github.com/iden3/go-iden3-auth/communication/protocol"
"github.com/iden3/go-iden3-auth/proofs/signature"
"github.com/iden3/go-iden3-auth/proofs/zeroknowledge"
"github.com/iden3/go-iden3-auth/types"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions communication/auth/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package auth

import (
"context"
"github.com/iden3/go-auth/circuits"
"github.com/iden3/go-auth/types"
"github.com/iden3/go-iden3-auth/circuits"
"github.com/iden3/go-iden3-auth/types"
"github.com/stretchr/testify/assert"
"os"
"testing"
Expand Down
4 changes: 2 additions & 2 deletions communication/auth/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package auth

import (
"context"
"github.com/iden3/go-auth/types"
"github.com/iden3/go-auth/verification"
"github.com/iden3/go-iden3-auth/types"
"github.com/iden3/go-iden3-auth/verification"
"github.com/pkg/errors"

core "github.com/iden3/go-iden3-core"
Expand Down
2 changes: 1 addition & 1 deletion communication/packer/packer.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package packer

import (
"github.com/iden3/go-auth/types"
"github.com/iden3/go-iden3-auth/types"
)

// Packer converts message to encrypted or encoded form
Expand Down
2 changes: 1 addition & 1 deletion communication/packer/plain.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package packer
import (
"encoding/json"
"fmt"
"github.com/iden3/go-auth/types"
"github.com/iden3/go-iden3-auth/types"
)

// PlainMessagePacker is simple packer that doesn't use encryption / encoding
Expand Down
4 changes: 2 additions & 2 deletions communication/packer/plain_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package packer

import (
"github.com/iden3/go-auth/communication/auth"
types2 "github.com/iden3/go-auth/types"
"github.com/iden3/go-iden3-auth/communication/auth"
types2 "github.com/iden3/go-iden3-auth/types"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/iden3/go-auth
module github.com/iden3/go-iden3-auth

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion proofs/signature/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package signature

import (
"errors"
"github.com/iden3/go-auth/types"
"github.com/iden3/go-iden3-auth/types"
)

// VerifyProof performs signature verification
Expand Down
2 changes: 1 addition & 1 deletion proofs/zeroknowledge/handlers/circuit.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package handlers

import (
"fmt"
types2 "github.com/iden3/go-auth/types"
types2 "github.com/iden3/go-iden3-auth/types"
)

// CircuitHandler is handler to verify circuit information of provided proof
Expand Down
2 changes: 1 addition & 1 deletion proofs/zeroknowledge/handlers/handler.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package handlers

import (
"github.com/iden3/go-auth/types"
"github.com/iden3/go-iden3-auth/types"
)

// ProofHandler is a handler for proof processing
Expand Down
2 changes: 1 addition & 1 deletion proofs/zeroknowledge/handlers/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package handlers
import (
"encoding/json"
"errors"
"github.com/iden3/go-auth/types"
"github.com/iden3/go-iden3-auth/types"
core "github.com/iden3/go-iden3-core"
"github.com/iden3/go-merkletree-sql"
"math/big"
Expand Down
4 changes: 2 additions & 2 deletions proofs/zeroknowledge/handlers/verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package handlers

import (
"fmt"
"github.com/iden3/go-auth/types"
"github.com/iden3/go-auth/verification"
"github.com/iden3/go-iden3-auth/types"
"github.com/iden3/go-iden3-auth/verification"
)

// VerificationHandler is handler to check verification of the provided proof
Expand Down
2 changes: 1 addition & 1 deletion proofs/zeroknowledge/handlers/zkpHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package handlers

import (
"fmt"
"github.com/iden3/go-auth/types"
"github.com/iden3/go-iden3-auth/types"
)

// ZeroKnowledgeProofHandler is handler to check message type
Expand Down
6 changes: 3 additions & 3 deletions proofs/zeroknowledge/proof.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package zeroknowledge

import (
"github.com/iden3/go-auth/circuits"
"github.com/iden3/go-auth/proofs/zeroknowledge/handlers"
types "github.com/iden3/go-auth/types"
"github.com/iden3/go-iden3-auth/circuits"
"github.com/iden3/go-iden3-auth/proofs/zeroknowledge/handlers"
types "github.com/iden3/go-iden3-auth/types"
)

var supportedCircuits = map[types.CircuitID]types.CircuitData{
Expand Down
2 changes: 1 addition & 1 deletion proofs/zeroknowledge/proof_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package zeroknowledge

import (
"github.com/iden3/go-auth/types"
"github.com/iden3/go-iden3-auth/types"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion verification/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"fmt"
bn256 "github.com/ethereum/go-ethereum/crypto/bn256/cloudflare"
"github.com/iden3/go-auth/types"
"github.com/iden3/go-circom-prover-verifier/parsers"
"github.com/iden3/go-iden3-auth/types"

circomTypes "github.com/iden3/go-circom-prover-verifier/types"

Expand Down
2 changes: 1 addition & 1 deletion verification/proof_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package verification

import (
"github.com/iden3/go-auth/circuits"
"github.com/iden3/go-circom-prover-verifier/parsers"
types2 "github.com/iden3/go-circom-prover-verifier/types"
"github.com/iden3/go-circom-prover-verifier/verifier"
"github.com/iden3/go-iden3-auth/circuits"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion verification/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var mockIDForTransitionTest, _ = new(big.Int).SetString("34991209115098148381250

// var mockGenesisStateForTransitionTest = "7602009011174143348823679941387689526272854949172451092389303080731259578764"
var mockGenesisFistStateForTransitionTest, _ = new(big.Int).SetString("1481800847075148494788055749726405573285086688210266986684281846223884620384", 10)
var mockGenesisSecondStateForTransitionTest, _ = new(big.Int).SetString("4506235703619752531498597253787548132971733735308164044901638795038541997988", 10)
var mockGenesisSecondStateForTransitionTest, _ = new(big.Int).SetString("11430153088007774047880202669458681328220551152129038501672597735901360891613", 10)

func TestVerifyState(t *testing.T) {

Expand Down

0 comments on commit 3b963a6

Please sign in to comment.