Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zkp #726

Merged
merged 18 commits into from
Sep 6, 2023
9 changes: 9 additions & 0 deletions src/Neo.SmartContract.Framework/Services/Crypto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,14 @@ public static class Crypto

[Syscall("System.Crypto.CheckMultisig")]
public extern static bool CheckMultisig(Cryptography.ECC.ECPoint[] pubkey, ByteString[] signature);

[Syscall("System.Crypto.Bls12381Add")]
public extern static byte[] Bls12381Add(byte[] gt1, byte[] gt2);

[Syscall("System.Crypto.Bls12381Mul")]
public extern static byte[] Bls12381Mul(byte[] gt, long mul);

[Syscall("System.Crypto.Bls12381Pairing")]
public extern static byte[] Bls12381Pairing(byte[] g1_bytes, byte[] g2_bytes);
}
}