From c4f1e9a6cd8c5ef4b0a4a3704e1736e58df581e3 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Fri, 14 Feb 2025 23:03:33 +0100 Subject: [PATCH 1/2] Update mod.rs --- cosmwasm/enclaves/shared/contract-engine/src/wasm3/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosmwasm/enclaves/shared/contract-engine/src/wasm3/mod.rs b/cosmwasm/enclaves/shared/contract-engine/src/wasm3/mod.rs index 35e76667d..b96e045d2 100644 --- a/cosmwasm/enclaves/shared/contract-engine/src/wasm3/mod.rs +++ b/cosmwasm/enclaves/shared/contract-engine/src/wasm3/mod.rs @@ -1689,7 +1689,7 @@ fn host_ed25519_batch_verify( // To verify a batch of ed25519 signatures we need to provide an RNG source. // In theory this doesn't have to be deterministic because the same signatures // should produce the same output (true/false) regardless of the RNG being used. - // In practice I'm too afraid to do something non-deterministic in concensus code + // In practice I'm too afraid to do something non-deterministic in consensus code // So I've decided to use a PRNG instead. // For entropy I'm using the entire ed25519 batch verify input data + the gas consumed // up until now in this WASM call. This will be deterministic, but also kinda-random in From 710411f56f2d85609461825f1f278769f53df4be Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Fri, 14 Feb 2025 23:04:01 +0100 Subject: [PATCH 2/2] Update module_test.go --- x/registration/module_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/registration/module_test.go b/x/registration/module_test.go index 91406431f..afe8961ca 100644 --- a/x/registration/module_test.go +++ b/x/registration/module_test.go @@ -8,7 +8,7 @@ package registration // keeper Keeper //} // -//// returns a cleanup function, which must be defered on +//// returns a cleanup function, which must be deferred on //func setupTest(t *testing.T) (testData, func()) { // tempDir, err := os.MkdirTemp("", "wasm") // require.NoError(t, err)