Bitcoin ABC 0.26.3
P2P Digital Currency
|
This class holds test cases defined for testing this library. More...
Classes | |
class | SchnorrTestVector |
Static Public Member Functions | |
static void | testVerifyPos () throws AssertFailException |
This tests verify() for a valid signature. | |
static void | testVerifyNeg () throws AssertFailException |
This tests verify() for a non-valid signature. | |
static void | testSecKeyVerifyPos () throws AssertFailException |
This tests secret key verify() for a valid secretkey. | |
static void | testSecKeyVerifyNeg () throws AssertFailException |
This tests secret key verify() for an invalid secretkey. | |
static void | testPubKeyCreatePos () throws AssertFailException |
This tests public key create() for a valid secretkey. | |
static void | testPubKeyCreateNeg () throws AssertFailException |
This tests public key create() for a invalid secretkey. | |
static void | testSignPos () throws AssertFailException |
This tests sign() for a valid secretkey. | |
static void | testSignNeg () throws AssertFailException |
This tests sign() for a invalid secretkey. | |
static void | testPrivKeyTweakAdd_1 () throws AssertFailException |
This tests private key tweak-add. | |
static void | testPrivKeyTweakMul_1 () throws AssertFailException |
This tests private key tweak-mul. | |
static void | testPrivKeyTweakAdd_2 () throws AssertFailException |
This tests private key tweak-add uncompressed. | |
static void | testPrivKeyTweakMul_2 () throws AssertFailException |
This tests private key tweak-mul uncompressed. | |
static void | testRandomize () throws AssertFailException |
This tests seed randomization. | |
static void | testSchnorrVerify () throws AssertFailException |
This tests schnorrVerify() for a valid signature. | |
static void | testSchnorrSign () throws AssertFailException |
This tests signSchnorr() for a valid secretkey. | |
static void | testCreateECDHSecret () throws AssertFailException |
static void | main (String[] args) throws AssertFailException |
Static Private Member Functions | |
static byte[] | hexStringToByteArray (String s) |
static String | byteArrayToHexString (byte[] byteArray) |
This class holds test cases defined for testing this library.
Definition at line 8 of file NativeSecp256k1Test.java.
|
inlinestaticprivate |
Definition at line 21 of file NativeSecp256k1Test.java.
Definition at line 10 of file NativeSecp256k1Test.java.
|
inlinestatic |
Definition at line 359 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests private key tweak-add.
Definition at line 136 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests private key tweak-add uncompressed.
Definition at line 162 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests private key tweak-mul.
Definition at line 149 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests private key tweak-mul uncompressed.
Definition at line 175 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests public key create() for a invalid secretkey.
Definition at line 99 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests public key create() for a valid secretkey.
Definition at line 88 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests seed randomization.
Definition at line 188 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests signSchnorr() for a valid secretkey.
Definition at line 349 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests schnorrVerify() for a valid signature.
It tests the following test vectors: https://github.com/sipa/bips/blob/bip-schnorr/bip-schnorr/test-vectors.csv
Definition at line 217 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests secret key verify() for an invalid secretkey.
Definition at line 76 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests secret key verify() for a valid secretkey.
Definition at line 64 of file NativeSecp256k1Test.java.
This tests sign() for a invalid secretkey.
Definition at line 123 of file NativeSecp256k1Test.java.
This tests sign() for a valid secretkey.
Definition at line 110 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests verify() for a non-valid signature.
Definition at line 49 of file NativeSecp256k1Test.java.
|
inlinestatic |
This tests verify() for a valid signature.
Definition at line 34 of file NativeSecp256k1Test.java.