From f34de4544c307e4cb27b014e1baa0c1599249d93 Mon Sep 17 00:00:00 2001 From: roman_harazha Date: Tue, 5 Mar 2024 14:12:02 +0200 Subject: [PATCH] bump rarimo/certificate-transparency-go version to support brainpool elliptic curves --- go.mod | 3 ++- go.sum | 6 ++++-- internal/service/api/handlers/create_identity.go | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 079cf42..0804c02 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/iden3/go-rapidsnark/types v0.0.3 github.com/iden3/go-rapidsnark/verifier v0.0.5 github.com/imroc/req/v3 v3.42.3 - github.com/rarimo/certificate-transparency-go v0.0.0-20240304125758-c92abb03c040 + github.com/rarimo/certificate-transparency-go v0.0.0-20240305114501-050b1f19639a github.com/rubenv/sql-migrate v1.6.1 gitlab.com/distributed_lab/ape v1.7.1 gitlab.com/distributed_lab/dig v0.0.0-20230207152643-c44f80a4294c @@ -66,6 +66,7 @@ require ( github.com/hashicorp/hcl v1.0.0 // indirect github.com/holiman/uint256 v1.2.4 // indirect github.com/jmoiron/sqlx v1.2.0 // indirect + github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4 // indirect github.com/klauspost/compress v1.17.4 // indirect github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect diff --git a/go.sum b/go.sum index 91a36a3..65ba850 100644 --- a/go.sum +++ b/go.sum @@ -252,6 +252,8 @@ github.com/kataras/golog v0.0.9/go.mod h1:12HJgwBIZFNGL0EJnMRhmvGA0PQGx8VFwrZtM4 github.com/kataras/iris/v12 v12.0.1/go.mod h1:udK4vLQKkdDqMGJJVd/msuMtN6hpYJhg/lSzuxjhO+U= github.com/kataras/neffos v0.0.10/go.mod h1:ZYmJC07hQPW67eKuzlfY7SO3bC0mw83A3j6im82hfqw= github.com/kataras/pio v0.0.0-20190103105442-ea782b38602d/go.mod h1:NV88laa9UiiDuX9AhMbDPkGYSPugBOV6yTZB1l2K9Z0= +github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4 h1:cTxwSmnaqLoo+4tLukHoB9iqHOu3LmLhRmgUxZo6Vp4= +github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.9.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.17.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4= @@ -361,8 +363,8 @@ github.com/quic-go/qtls-go1-20 v0.4.1 h1:D33340mCNDAIKBqXuAvexTNMUByrYmFYVfKfDN5 github.com/quic-go/qtls-go1-20 v0.4.1/go.mod h1:X9Nh97ZL80Z+bX/gUXMbipO6OxdiDi58b/fMC9mAL+k= github.com/quic-go/quic-go v0.40.1 h1:X3AGzUNFs0jVuO3esAGnTfvdgvL4fq655WaOi1snv1Q= github.com/quic-go/quic-go v0.40.1/go.mod h1:PeN7kuVJ4xZbxSv/4OX6S1USOX8MJvydwpTx31vx60c= -github.com/rarimo/certificate-transparency-go v0.0.0-20240304125758-c92abb03c040 h1:lA+b9Xpvz8uq+MTkwKn4fVV71UyTjBPTIsrXFI5iACU= -github.com/rarimo/certificate-transparency-go v0.0.0-20240304125758-c92abb03c040/go.mod h1:se3tnEsU7zjZcNv0U4iKbXapSY1mxg8gOKDNDLZizcw= +github.com/rarimo/certificate-transparency-go v0.0.0-20240305114501-050b1f19639a h1:4PfCUdJ8IdegZj2LjFv5qJ8CzXaXTAqgNSJd34a86ac= +github.com/rarimo/certificate-transparency-go v0.0.0-20240305114501-050b1f19639a/go.mod h1:9WBW36Eaqp+++3u2TemGbVFqxe7Wpes4H7Ufomqn/DA= github.com/refraction-networking/utls v1.6.0 h1:X5vQMqVx7dY7ehxxqkFER/W6DSjy8TMqSItXm8hRDYQ= github.com/refraction-networking/utls v1.6.0/go.mod h1:kHJ6R9DFFA0WsRgBM35iiDku4O7AqPR6y79iuzW7b10= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/internal/service/api/handlers/create_identity.go b/internal/service/api/handlers/create_identity.go index de111e2..f12bc1f 100644 --- a/internal/service/api/handlers/create_identity.go +++ b/internal/service/api/handlers/create_identity.go @@ -448,7 +448,7 @@ func validatePubSignalsCurrentDate(pubSignals []string) error { return fmt.Errorf("invalid day: %w", err) } - currentTime := time.Now() + currentTime := time.Now().UTC() if currentTime.Year() != (2000 + year) { return fmt.Errorf("invalid year, expected %d, got %d", currentTime.Year(), 2000+year)