Skip to content

Commit e0a17be

Browse files
committed
mathlib 21c357e3e46fa7a7fd43910b0be6c88f60cf3da0
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
1 parent 1e772e7 commit e0a17be

File tree

5 files changed

+18
-16
lines changed

5 files changed

+18
-16
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/DATA-DOG/go-sqlmock v1.5.2
99
github.com/IBM/idemix v0.0.2-0.20250313153527-832db18b9478
1010
github.com/IBM/idemix/bccsp/types v0.0.0-20250313153527-832db18b9478
11-
github.com/IBM/mathlib v0.0.3-0.20260123141248-f52c9be3cb35
11+
github.com/IBM/mathlib v0.0.3-0.20260123144934-21c357e3e46f
1212
github.com/dgraph-io/ristretto/v2 v2.3.0
1313
github.com/gin-gonic/gin v1.10.0
1414
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,8 @@ github.com/IBM/idemix/bccsp/schemes/weak-bb v0.0.0-20250313153527-832db18b9478 h
643643
github.com/IBM/idemix/bccsp/schemes/weak-bb v0.0.0-20250313153527-832db18b9478/go.mod h1:k4Q5EYKRnYC6t80ipSCY3G8H4FdcxRa8jjlsJdGfNCY=
644644
github.com/IBM/idemix/bccsp/types v0.0.0-20250313153527-832db18b9478 h1:Uzmcb4pNb54/fbAjnrZTiJwWV74+twP60N4qBGm4PvU=
645645
github.com/IBM/idemix/bccsp/types v0.0.0-20250313153527-832db18b9478/go.mod h1:Pi1QIuIZ+1OXIbnYe27vNwJOnSq2WvkHRT/sfweTw8E=
646-
github.com/IBM/mathlib v0.0.3-0.20260123141248-f52c9be3cb35 h1:q1C/kctKZs+uMzw39gy0ZwygUqL/uY3p6/E/TObIhDQ=
647-
github.com/IBM/mathlib v0.0.3-0.20260123141248-f52c9be3cb35/go.mod h1:yJTkNqKzf4qxM3O17dd4VZMnantrTATrvY1ta0MV+J8=
646+
github.com/IBM/mathlib v0.0.3-0.20260123144934-21c357e3e46f h1:J6Fsh8JEYN+wh3QHjbDqc4PyJEztjRo3Gv+IJaI7xfU=
647+
github.com/IBM/mathlib v0.0.3-0.20260123144934-21c357e3e46f/go.mod h1:yJTkNqKzf4qxM3O17dd4VZMnantrTATrvY1ta0MV+J8=
648648
github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk=
649649
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible h1:1G1pk05UrOh0NlF1oeaaix1x8XzrfjIDK47TY0Zehcw=
650650
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=

token/core/zkatdlog/nogh/v1/validator/validator_transfer.go

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,19 @@ func TransferSignatureValidate(c context.Context, ctx *Context) error {
4343
inputToken = append(inputToken, tok)
4444

4545
// check sender signature
46-
ctx.Logger.Debugf("check sender [%d][%s]", i, driver.Identity(tok.Owner).UniqueID())
47-
verifier, err := ctx.Deserializer.GetOwnerVerifier(c, tok.Owner)
48-
if err != nil {
49-
return errors.Wrapf(err, "failed deserializing owner [%d][%v][%s]", i, in, driver.Identity(tok.Owner))
50-
}
51-
ctx.Logger.Debugf("signature verification [%d][%v][%s]", i, in, driver.Identity(tok.Owner).UniqueID())
52-
sigma, err := ctx.SignatureProvider.HasBeenSignedBy(c, tok.Owner, verifier)
53-
if err != nil {
54-
return errors.Wrapf(err, "failed signature verification [%d][%v][%s]", i, in, driver.Identity(tok.Owner))
46+
if i == 0 {
47+
ctx.Logger.Debugf("check sender [%d][%s]", i, driver.Identity(tok.Owner).UniqueID())
48+
verifier, err := ctx.Deserializer.GetOwnerVerifier(c, tok.Owner)
49+
if err != nil {
50+
return errors.Wrapf(err, "failed deserializing owner [%d][%v][%s]", i, in, driver.Identity(tok.Owner))
51+
}
52+
ctx.Logger.Debugf("signature verification [%d][%v][%s]", i, in, driver.Identity(tok.Owner).UniqueID())
53+
sigma, err := ctx.SignatureProvider.HasBeenSignedBy(c, tok.Owner, verifier)
54+
if err != nil {
55+
return errors.Wrapf(err, "failed signature verification [%d][%v][%s]", i, in, driver.Identity(tok.Owner))
56+
}
57+
signatures = append(signatures, sigma)
5558
}
56-
signatures = append(signatures, sigma)
5759
}
5860

5961
ctx.InputTokens = inputToken

token/services/storage/db/kvs/hashicorp/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ require (
2020
github.com/IBM/idemix v0.0.2-0.20250313153527-832db18b9478 // indirect
2121
github.com/IBM/idemix/bccsp/schemes/weak-bb v0.0.0-20250313153527-832db18b9478 // indirect
2222
github.com/IBM/idemix/bccsp/types v0.0.0-20250313153527-832db18b9478 // indirect
23-
github.com/IBM/mathlib v0.0.3-0.20260123141248-f52c9be3cb35 // indirect
23+
github.com/IBM/mathlib v0.0.3-0.20260123144934-21c357e3e46f // indirect
2424
github.com/Microsoft/go-winio v0.6.2 // indirect
2525
github.com/beorn7/perks v1.0.1 // indirect
2626
github.com/bits-and-blooms/bitset v1.24.4 // indirect

token/services/storage/db/kvs/hashicorp/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ github.com/IBM/idemix/bccsp/schemes/weak-bb v0.0.0-20250313153527-832db18b9478 h
1111
github.com/IBM/idemix/bccsp/schemes/weak-bb v0.0.0-20250313153527-832db18b9478/go.mod h1:k4Q5EYKRnYC6t80ipSCY3G8H4FdcxRa8jjlsJdGfNCY=
1212
github.com/IBM/idemix/bccsp/types v0.0.0-20250313153527-832db18b9478 h1:Uzmcb4pNb54/fbAjnrZTiJwWV74+twP60N4qBGm4PvU=
1313
github.com/IBM/idemix/bccsp/types v0.0.0-20250313153527-832db18b9478/go.mod h1:Pi1QIuIZ+1OXIbnYe27vNwJOnSq2WvkHRT/sfweTw8E=
14-
github.com/IBM/mathlib v0.0.3-0.20260123141248-f52c9be3cb35 h1:q1C/kctKZs+uMzw39gy0ZwygUqL/uY3p6/E/TObIhDQ=
15-
github.com/IBM/mathlib v0.0.3-0.20260123141248-f52c9be3cb35/go.mod h1:yJTkNqKzf4qxM3O17dd4VZMnantrTATrvY1ta0MV+J8=
14+
github.com/IBM/mathlib v0.0.3-0.20260123144934-21c357e3e46f h1:J6Fsh8JEYN+wh3QHjbDqc4PyJEztjRo3Gv+IJaI7xfU=
15+
github.com/IBM/mathlib v0.0.3-0.20260123144934-21c357e3e46f/go.mod h1:yJTkNqKzf4qxM3O17dd4VZMnantrTATrvY1ta0MV+J8=
1616
github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1Xbatp0=
1717
github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
1818
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=

0 commit comments

Comments
 (0)