Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
This class holds test cases defined for testing this library. More...
Static Public Member Functions | |
static void | testVerifyPos () throws AssertFailException |
This tests verify() for a valid signature. More... | |
static void | testVerifyNeg () throws AssertFailException |
This tests verify() for a non-valid signature. More... | |
static void | testSecKeyVerifyPos () throws AssertFailException |
This tests secret key verify() for a valid secretkey. More... | |
static void | testSecKeyVerifyNeg () throws AssertFailException |
This tests secret key verify() for an invalid secretkey. More... | |
static void | testPubKeyCreatePos () throws AssertFailException |
This tests public key create() for a valid secretkey. More... | |
static void | testPubKeyCreateNeg () throws AssertFailException |
This tests public key create() for a invalid secretkey. More... | |
static void | testSignPos () throws AssertFailException |
This tests sign() for a valid secretkey. More... | |
static void | testSignNeg () throws AssertFailException |
This tests sign() for a invalid secretkey. More... | |
static void | testPrivKeyTweakAdd_1 () throws AssertFailException |
This tests private key tweak-add. More... | |
static void | testPrivKeyTweakMul_1 () throws AssertFailException |
This tests private key tweak-mul. More... | |
static void | testPrivKeyTweakAdd_2 () throws AssertFailException |
This tests private key tweak-add uncompressed. More... | |
static void | testPrivKeyTweakMul_2 () throws AssertFailException |
This tests private key tweak-mul uncompressed. More... | |
static void | testRandomize () throws AssertFailException |
This tests seed randomization. More... | |
static void | testCreateECDHSecret () throws AssertFailException |
static void | main (String[] args) throws AssertFailException |
Detailed Description
This class holds test cases defined for testing this library.
Definition at line 12 of file NativeSecp256k1Test.java.
Member Function Documentation
◆ main()
|
inlinestatic |
Definition at line 180 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.cleanup(), org.bitcoin.Secp256k1Context.isEnabled(), org.bitcoin.NativeSecp256k1Test.testCreateECDHSecret(), org.bitcoin.NativeSecp256k1Test.testPrivKeyTweakAdd_1(), org.bitcoin.NativeSecp256k1Test.testPrivKeyTweakAdd_2(), org.bitcoin.NativeSecp256k1Test.testPrivKeyTweakMul_1(), org.bitcoin.NativeSecp256k1Test.testPrivKeyTweakMul_2(), org.bitcoin.NativeSecp256k1Test.testPubKeyCreateNeg(), org.bitcoin.NativeSecp256k1Test.testPubKeyCreatePos(), org.bitcoin.NativeSecp256k1Test.testRandomize(), org.bitcoin.NativeSecp256k1Test.testSecKeyVerifyNeg(), org.bitcoin.NativeSecp256k1Test.testSecKeyVerifyPos(), org.bitcoin.NativeSecp256k1Test.testSignNeg(), org.bitcoin.NativeSecp256k1Test.testSignPos(), org.bitcoin.NativeSecp256k1Test.testVerifyNeg(), and org.bitcoin.NativeSecp256k1Test.testVerifyPos().
◆ testCreateECDHSecret()
|
inlinestatic |
Definition at line 170 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.createECDHSecret().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testPrivKeyTweakAdd_1()
|
inlinestatic |
This tests private key tweak-add.
Definition at line 116 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.privKeyTweakAdd().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testPrivKeyTweakAdd_2()
|
inlinestatic |
This tests private key tweak-add uncompressed.
Definition at line 140 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.pubKeyTweakAdd().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testPrivKeyTweakMul_1()
|
inlinestatic |
This tests private key tweak-mul.
Definition at line 128 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.privKeyTweakMul().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testPrivKeyTweakMul_2()
|
inlinestatic |
This tests private key tweak-mul uncompressed.
Definition at line 152 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.pubKeyTweakMul().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testPubKeyCreateNeg()
|
inlinestatic |
This tests public key create() for a invalid secretkey.
Definition at line 80 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.computePubkey().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testPubKeyCreatePos()
|
inlinestatic |
This tests public key create() for a valid secretkey.
Definition at line 69 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.computePubkey().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testRandomize()
|
inlinestatic |
This tests seed randomization.
Definition at line 164 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.randomize().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testSecKeyVerifyNeg()
|
inlinestatic |
This tests secret key verify() for an invalid secretkey.
Definition at line 57 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.secKeyVerify().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testSecKeyVerifyPos()
|
inlinestatic |
This tests secret key verify() for a valid secretkey.
Definition at line 45 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.secKeyVerify().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testSignNeg()
|
inlinestatic |
This tests sign() for a invalid secretkey.
Definition at line 104 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.sign().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testSignPos()
|
inlinestatic |
This tests sign() for a valid secretkey.
Definition at line 91 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.sign().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testVerifyNeg()
|
inlinestatic |
This tests verify() for a non-valid signature.
Definition at line 31 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.verify().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
◆ testVerifyPos()
|
inlinestatic |
This tests verify() for a valid signature.
Definition at line 18 of file NativeSecp256k1Test.java.
References org.bitcoin.NativeSecp256k1.verify().
Referenced by org.bitcoin.NativeSecp256k1Test.main().
The documentation for this class was generated from the following file:
- src/secp256k1/src/java/org/bitcoin/NativeSecp256k1Test.java