Skip to content

Commit

Permalink
Add key management
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Zhang <[email protected]>
  • Loading branch information
jimthematrix committed Jul 30, 2024
1 parent cb8a974 commit 6bfaca5
Show file tree
Hide file tree
Showing 25 changed files with 34 additions and 34 deletions.
10 changes: 5 additions & 5 deletions zkp/golang/integration-test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ import (
"time"

"github.com/hyperledger-labs/zeto/internal/testutils"
"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/pkg/node"
"github.com/hyperledger-labs/zeto/pkg/smt"
"github.com/hyperledger-labs/zeto/pkg/storage"
"github.com/hyperledger-labs/zeto/pkg/utxo"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/node"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/smt"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/storage"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/utxo"
"github.com/iden3/go-iden3-crypto/babyjub"
"github.com/iden3/go-iden3-crypto/poseidon"
"github.com/iden3/go-rapidsnark/prover"
Expand Down
Empty file.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"math/big"
"strings"

"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
"github.com/iden3/go-iden3-crypto/poseidon"
cryptoUtils "github.com/iden3/go-iden3-crypto/utils"
)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"math/big"
"sync"

"github.com/hyperledger-labs/zeto/internal/node"
"github.com/hyperledger-labs/zeto/internal/storage"
"github.com/hyperledger-labs/zeto/internal/utils"
"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/node"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/storage"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/utils"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
)

// MAX_TREE_HEIGHT is the maximum number of levels of the sparse merkle tree.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"fmt"
"math/big"

"github.com/hyperledger-labs/zeto/internal/node"
"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/node"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
)

// Proof defines the required elements for a MT proof of existence or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
"math/rand"
"testing"

"github.com/hyperledger-labs/zeto/internal/node"
"github.com/hyperledger-labs/zeto/internal/storage"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/node"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/storage"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/utxo"
"github.com/hyperledger-labs/zeto/internal/testutils"
"github.com/hyperledger-labs/zeto/internal/utxo"
"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
"github.com/iden3/go-iden3-crypto/babyjub"
"github.com/stretchr/testify/assert"
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package storage

import "github.com/hyperledger-labs/zeto/pkg/core"
import "github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"

type memoryStorage struct {
root core.NodeIndex
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
package storage

import (
"github.com/hyperledger-labs/zeto/internal/node"
"github.com/hyperledger-labs/zeto/internal/utils"
"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/node"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/utils"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
"gorm.io/gorm"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package utils

import (
"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
)

type IndexOnly struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package utxo
import (
"math/big"

"github.com/hyperledger-labs/zeto/internal/node"
"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/node"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
"github.com/iden3/go-iden3-crypto/babyjub"
"github.com/iden3/go-iden3-crypto/poseidon"
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"fmt"
"math/big"

"github.com/hyperledger-labs/zeto/internal/node"
"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/node"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
"github.com/iden3/go-iden3-crypto/babyjub"
"github.com/iden3/go-iden3-crypto/poseidon"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package node
import (
"math/big"

"github.com/hyperledger-labs/zeto/internal/node"
"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/node"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
)

func NewEmptyNode() core.Node {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package smt

import (
"github.com/hyperledger-labs/zeto/internal/smt"
"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/smt"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
)

func NewMerkleTree(db core.Storage, maxLevels int) (core.SparseMerkleTree, error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package storage

import (
"github.com/hyperledger-labs/zeto/internal/storage"
"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/storage"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
)

func NewMemoryStorage() core.Storage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package utxo
import (
"math/big"

"github.com/hyperledger-labs/zeto/internal/utils"
"github.com/hyperledger-labs/zeto/internal/utxo"
"github.com/hyperledger-labs/zeto/pkg/core"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/utils"
"github.com/hyperledger-labs/zeto/internal/sparse-merkle-tree/utxo"
"github.com/hyperledger-labs/zeto/pkg/sparse-merkle-tree/core"
"github.com/iden3/go-iden3-crypto/babyjub"
)

Expand Down

0 comments on commit 6bfaca5

Please sign in to comment.