From 2f1dac1ae3f860b4b897141d7e792c305869fd6b Mon Sep 17 00:00:00 2001 From: Oleg Lomaka Date: Fri, 19 May 2023 09:02:24 -0400 Subject: [PATCH] Upgrade go-iden3-core to lastest hash --- go.mod | 2 +- go.sum | 4 ++-- testing/identity.go | 3 +-- testing/utils.go | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 3ed118b..bbe47ef 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/iden3/go-circuits/v2 go 1.18 require ( - github.com/iden3/go-iden3-core/v2 v2.0.0-20230505110120-f4681972ad45 + github.com/iden3/go-iden3-core/v2 v2.0.0-20230519124718-42b31ff46f37 github.com/iden3/go-iden3-crypto v0.0.15 github.com/iden3/go-merkletree-sql/v2 v2.0.4 github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index 5d84688..4ba2665 100644 --- a/go.sum +++ b/go.sum @@ -3,8 +3,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dchest/blake512 v1.0.0 h1:oDFEQFIqFSeuA34xLtXZ/rWxCXdSjirjzPhey5EUvmA= github.com/dchest/blake512 v1.0.0/go.mod h1:FV1x7xPPLWukZlpDpWQ88rF/SFwZ5qbskrzhLMB92JI= -github.com/iden3/go-iden3-core/v2 v2.0.0-20230505110120-f4681972ad45 h1:0XwrQksyOrKz86bDZSuYbGGJLIvGQyTHGEhFP4QWqq4= -github.com/iden3/go-iden3-core/v2 v2.0.0-20230505110120-f4681972ad45/go.mod h1:L9PxhWPvoS9qTb3inEkZBm1RpjHBt+VTwvxssdzbAdw= +github.com/iden3/go-iden3-core/v2 v2.0.0-20230519124718-42b31ff46f37 h1:JPH0tMr8geJO0vLhwTZkopHqm35ARCjCIKNab9rc6QI= +github.com/iden3/go-iden3-core/v2 v2.0.0-20230519124718-42b31ff46f37/go.mod h1:L9PxhWPvoS9qTb3inEkZBm1RpjHBt+VTwvxssdzbAdw= github.com/iden3/go-iden3-crypto v0.0.15 h1:4MJYlrot1l31Fzlo2sF56u7EVFeHHJkxGXXZCtESgK4= github.com/iden3/go-iden3-crypto v0.0.15/go.mod h1:dLpM4vEPJ3nDHzhWFXDjzkn1qHoBeOT/3UEhXsEsP3E= github.com/iden3/go-merkletree-sql/v2 v2.0.4 h1:Dp089P3YNX1BE8+T1tKQHWTtnk84Y/Kr7ZAGTqwscoY= diff --git a/testing/identity.go b/testing/identity.go index ecf0e91..8bf1ce3 100644 --- a/testing/identity.go +++ b/testing/identity.go @@ -82,8 +82,7 @@ func Generate(ctx context.Context, privKHex string) (*core.ID, state, _ := poseidon.Hash([]*big.Int{claimsTree.Root().BigInt(), big.NewInt(0), big.NewInt(0)}) // create new identity - identifier, err := core.IdGenesisFromIdenState(core.TypeDefault, - state) + identifier, err := core.NewIDFromIdenState(core.TypeDefault, state) if err != nil { return nil, nil, nil, nil, err, nil, nil } diff --git a/testing/utils.go b/testing/utils.go index ca970e5..acb5037 100644 --- a/testing/utils.go +++ b/testing/utils.go @@ -158,7 +158,7 @@ func IDFromState(state *big.Int) (*core.ID, error) { return nil, err } // create new identity - return core.IdGenesisFromIdenState(typ, state) + return core.NewIDFromIdenState(typ, state) } func IDFromStr(t testing.TB, idStr string) *core.ID {