fix typos

This commit is contained in:
snoppy 2024-03-17 23:12:42 +08:00
parent ba2dd9385c
commit 4d9e9b8126
2 changed files with 6 additions and 3 deletions

View file

@ -24,6 +24,9 @@ import java.math.BigInteger;
import com.google.common.base.Preconditions; import com.google.common.base.Preconditions;
import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock;
import org.bitcoin.NativeSecp256k1Util.AssertFailException;
import static org.bitcoin.NativeSecp256k1Util.*; import static org.bitcoin.NativeSecp256k1Util.*;
/** /**
@ -359,8 +362,8 @@ public class NativeSecp256k1 {
/** /**
* libsecp256k1 create ECDH secret - constant time ECDH calculation * libsecp256k1 create ECDH secret - constant time ECDH calculation
* *
* @param seckey byte array of secret key used in exponentiaion * @param seckey byte array of secret key used in exponentiation
* @param pubkey byte array of public key used in exponentiaion * @param pubkey byte array of public key used in exponentiation
*/ */
public static byte[] createECDHSecret(byte[] seckey, byte[] pubkey) throws AssertFailException{ public static byte[] createECDHSecret(byte[] seckey, byte[] pubkey) throws AssertFailException{
Preconditions.checkArgument(seckey.length <= 32 && pubkey.length <= 65); Preconditions.checkArgument(seckey.length <= 32 && pubkey.length <= 65);

View file

@ -25,7 +25,7 @@ contract('OpCodes', (accounts) => {
beforeEach(async () => { beforeEach(async () => {
contractInstance = await TodoList.deployed() 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()
await contractInstance.test_stop() await contractInstance.test_stop()