From b929b1be0240ea7e1ebf313565880ea15b1bcb4a Mon Sep 17 00:00:00 2001 From: Aumetra Weisman Date: Thu, 18 Jul 2024 15:16:47 +0200 Subject: [PATCH] Update src/pages/core/standard-library/cryptography/bls12-381.mdx Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com> --- src/pages/core/standard-library/cryptography/bls12-381.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/core/standard-library/cryptography/bls12-381.mdx b/src/pages/core/standard-library/cryptography/bls12-381.mdx index 15686379..a8e669b1 100644 --- a/src/pages/core/standard-library/cryptography/bls12-381.mdx +++ b/src/pages/core/standard-library/cryptography/bls12-381.mdx @@ -55,7 +55,7 @@ pub fn query( ) -> StdResult { // Verify the signature. On chain! let msg_hash = deps.api.bls12_381_hash_to_g1(HashFunction::Sha256, &msg.msg, &msg.dst)?; - let is_valid = deps.api.bls12_381_pairing_equality(&msg.signature, &BLS12_381_G2_GENERATOR, &msg.pubkey, &msg_hash)?; + let is_valid = deps.api.bls12_381_pairing_equality(&msg.signature, &BLS12_381_G2_GENERATOR, &msg_hash, &msg.pubkey)?; let response = to_json_binary(&VerifyResponse { is_valid })?;