From 4d9e9b8126756285358602a907cab590c275624e Mon Sep 17 00:00:00 2001 From: snoppy Date: Sun, 17 Mar 2024 23:12:42 +0800 Subject: [PATCH] fix typos --- .../libsecp256k1/src/java/org/bitcoin/NativeSecp256k1.java | 7 +++++-- tests/solidity/test/opCodes.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/crypto/secp256k1/libsecp256k1/src/java/org/bitcoin/NativeSecp256k1.java b/crypto/secp256k1/libsecp256k1/src/java/org/bitcoin/NativeSecp256k1.java index 1c67802fba..cafd5929f9 100644 --- a/crypto/secp256k1/libsecp256k1/src/java/org/bitcoin/NativeSecp256k1.java +++ b/crypto/secp256k1/libsecp256k1/src/java/org/bitcoin/NativeSecp256k1.java @@ -24,6 +24,9 @@ import java.math.BigInteger; import com.google.common.base.Preconditions; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantReadWriteLock; + +import org.bitcoin.NativeSecp256k1Util.AssertFailException; + import static org.bitcoin.NativeSecp256k1Util.*; /** @@ -359,8 +362,8 @@ public class NativeSecp256k1 { /** * libsecp256k1 create ECDH secret - constant time ECDH calculation * - * @param seckey byte array of secret key used in exponentiaion - * @param pubkey byte array of public key used in exponentiaion + * @param seckey byte array of secret key used in exponentiation + * @param pubkey byte array of public key used in exponentiation */ public static byte[] createECDHSecret(byte[] seckey, byte[] pubkey) throws AssertFailException{ Preconditions.checkArgument(seckey.length <= 32 && pubkey.length <= 65); diff --git a/tests/solidity/test/opCodes.js b/tests/solidity/test/opCodes.js index dde80f78ad..ea11c9323e 100644 --- a/tests/solidity/test/opCodes.js +++ b/tests/solidity/test/opCodes.js @@ -25,7 +25,7 @@ contract('OpCodes', (accounts) => { beforeEach(async () => { contractInstance = await TodoList.deployed() }) - it('Should run without errors the majorit of opcodes', async () => { + it('Should run without errors the majority of opcodes', async () => { await contractInstance.test() await contractInstance.test_stop()