From 923233f8df8b1b2793d7472e2fc85f3dfd798bcb Mon Sep 17 00:00:00 2001 From: code0xff Date: Fri, 25 Oct 2024 10:26:35 +0900 Subject: [PATCH] fix: Fix typos --- vendor/composable/vm-wasmi/src/host_functions.rs | 6 +++--- vendor/composable/vm/src/executor.rs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vendor/composable/vm-wasmi/src/host_functions.rs b/vendor/composable/vm-wasmi/src/host_functions.rs index 4445944e..b75dc98f 100644 --- a/vendor/composable/vm-wasmi/src/host_functions.rs +++ b/vendor/composable/vm-wasmi/src/host_functions.rs @@ -278,11 +278,11 @@ where >(&vm, message_hash_ptr as u32)?; let signature = passthrough_out::< WasmiVM, - ConstantReadLimit<{ constants::EDCSA_SIGNATURE_LENGTH }>, + ConstantReadLimit<{ constants::ECDSA_SIGNATURE_LENGTH }>, >(&vm, signature_ptr as u32)?; let public_key = passthrough_out::< WasmiVM, - ConstantReadLimit<{ constants::MAX_LENGTH_EDCSA_PUBKEY_LENGTH }>, + ConstantReadLimit<{ constants::MAX_LENGTH_ECDSA_PUBKEY_LENGTH }>, >(&vm, public_key_ptr as u32)?; let result = vm.secp256k1_verify(&message_hash, &signature, &public_key)?; @@ -313,7 +313,7 @@ where >(&vm, message_hash_ptr as u32)?; let signature = passthrough_out::< WasmiVM, - ConstantReadLimit<{ constants::EDCSA_SIGNATURE_LENGTH }>, + ConstantReadLimit<{ constants::ECDSA_SIGNATURE_LENGTH }>, >(&vm, signature_ptr as u32)?; if let Ok(pubkey) = diff --git a/vendor/composable/vm/src/executor.rs b/vendor/composable/vm/src/executor.rs index 35b5818c..d2ce03d5 100644 --- a/vendor/composable/vm/src/executor.rs +++ b/vendor/composable/vm/src/executor.rs @@ -721,10 +721,10 @@ pub mod constants { pub const MAX_LENGTH_ABORT: usize = 2 * MI; /// Max length of a message hash pub const MAX_LENGTH_MESSAGE_HASH: usize = 32; - /// Length of an edcsa signature - pub const EDCSA_SIGNATURE_LENGTH: usize = 64; - /// Max length for edcsa public key - pub const MAX_LENGTH_EDCSA_PUBKEY_LENGTH: usize = 65; + /// Length of an ecdsa signature + pub const ECDSA_SIGNATURE_LENGTH: usize = 64; + /// Max length for ecdsa public key + pub const MAX_LENGTH_ECDSA_PUBKEY_LENGTH: usize = 65; /// Length of an eddsa public key pub const EDDSA_PUBKEY_LENGTH: usize = 32; }