From b4d1c7a348513800cb0b956ced8f3ddbb8f5cf5b Mon Sep 17 00:00:00 2001 From: Vladyslav Munin Date: Wed, 11 Mar 2026 15:58:26 +0200 Subject: [PATCH 1/2] add RSA OAEP --- utils/accept.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/accept.go b/utils/accept.go index d4f786d..d91c21f 100644 --- a/utils/accept.go +++ b/utils/accept.go @@ -7,6 +7,7 @@ import ( "github.com/iden3/go-circuits/v2" "github.com/iden3/iden3comm/v2" "github.com/iden3/iden3comm/v2/protocol" + "github.com/lestrrat-go/jwx/v3/jwa" ) const ( @@ -232,7 +233,8 @@ func isAcceptJwsAlgorithms(value string) bool { func isAcceptAnoncryptAlgorithms(value string) bool { // List all possible Anoncrypt algorithms validAlgorithms := []protocol.AnoncryptAlgorithms{ - protocol.AnoncryptECDHESA256KW, + protocol.AnoncryptAlgorithms(jwa.RSA_OAEP_256().String()), + protocol.AnoncryptAlgorithms(jwa.ECDH_ES_A256KW().String()), } for _, v := range validAlgorithms { if protocol.AnoncryptAlgorithms(value) == v { From 5d95713f134439311e2a3d3523142e1a50ba13b6 Mon Sep 17 00:00:00 2001 From: Vladyslav Munin Date: Wed, 11 Mar 2026 16:09:49 +0200 Subject: [PATCH 2/2] fix tests --- packers/zkp_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packers/zkp_test.go b/packers/zkp_test.go index 5375a6e..5033fa8 100644 --- a/packers/zkp_test.go +++ b/packers/zkp_test.go @@ -131,7 +131,7 @@ func TestZKPSupportedProfilesWithoutCircuits(t *testing.T) { func TestConvertEthResolvers(t *testing.T) { resolver1, err := eth.NewResolver("https://rpc-mainnet.billions.network", "0x3C9acB2205Aa72A05F6D77d708b5Cf85FCa3a123") require.NoError(t, err) - resolver2, err := eth.NewResolver("http://billions-testnet-rpc.eu-north-2.gateway.fm", "0x3C9acB2205Aa72A05F6D77d708b5Cf85FCa3a896") + resolver2, err := eth.NewResolver("https://billions-testnet-rpc.eu-north-2.gateway.fm", "0x3C9acB2205Aa72A05F6D77d708b5Cf85FCa3a896") require.NoError(t, err) ethResolvers := map[int]eth.Resolver{