Bouncy Castle Cryptography Library 1.85

org.bouncycastle.crypto.test
Class BIP340SignerTest

java.lang.Object
  extended byorg.bouncycastle.util.test.SimpleTest
      extended byorg.bouncycastle.crypto.test.BIP340SignerTest
All Implemented Interfaces:
Test

public class BIP340SignerTest
extends SimpleTest

Regression test for BIP-340 Schnorr signatures over secp256k1.

Drives the official test vectors from bitcoin/bips, resolved through TestResourceFinder at . Each row exercises verification; rows that carry a secret key additionally exercise deterministic signing (the column makes both signing and verification reproducible).


Nested Class Summary
 
Nested classes inherited from class org.bouncycastle.util.test.SimpleTest
SimpleTest.TestExceptionOperation
 
Constructor Summary
BIP340SignerTest()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
 
Methods inherited from class org.bouncycastle.util.test.SimpleTest
areEqual, areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests, testException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BIP340SignerTest

public BIP340SignerTest()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Test
Specified by:
getName in class SimpleTest

main

public static void main(java.lang.String[] args)

performTest

public void performTest()
                 throws java.lang.Exception
Specified by:
performTest in class SimpleTest
Throws:
java.lang.Exception

Bouncy Castle Cryptography Library 1.85