From a1300561e0d812247e81208abf10aefb6aa7a617 Mon Sep 17 00:00:00 2001 From: chopin-fan Date: Wed, 17 Jul 2024 15:22:12 +0800 Subject: [PATCH] Add groth16 and poseidon to whitelist. --- src/AElf.CSharp.CodeOps/AElf.CSharp.CodeOps.csproj | 2 ++ .../Validators/Whitelist/IWhitelistProvider.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/AElf.CSharp.CodeOps/AElf.CSharp.CodeOps.csproj b/src/AElf.CSharp.CodeOps/AElf.CSharp.CodeOps.csproj index 89c51e7004..0889f887a5 100644 --- a/src/AElf.CSharp.CodeOps/AElf.CSharp.CodeOps.csproj +++ b/src/AElf.CSharp.CodeOps/AElf.CSharp.CodeOps.csproj @@ -9,7 +9,9 @@ + + diff --git a/src/AElf.CSharp.CodeOps/Validators/Whitelist/IWhitelistProvider.cs b/src/AElf.CSharp.CodeOps/Validators/Whitelist/IWhitelistProvider.cs index 7c9f30c65d..b6a45aeedf 100644 --- a/src/AElf.CSharp.CodeOps/Validators/Whitelist/IWhitelistProvider.cs +++ b/src/AElf.CSharp.CodeOps/Validators/Whitelist/IWhitelistProvider.cs @@ -48,6 +48,8 @@ private void WhitelistAssemblies(Whitelist whitelist) .Assembly(typeof(IMethod).Assembly, Trust.Full) // AElf.CSharp.Core .Assembly(typeof(SecretSharingHelper).Assembly, Trust.Partial) // AElf.Cryptography .Assembly(typeof(ISmartContractBridgeContext).Assembly, Trust.Full) // AElf.Kernel.SmartContract.Shared + .Assembly(typeof(Groth16.Net.Verifier).Assembly, Trust.Full) // AElf.Cryptography.ECDSA + .Assembly(typeof(Poseidon.Net.Poseidon).Assembly, Trust.Full) ; }