@Test
  public void testEddsa() throws Exception {
    Ed25519Sign.KeyPair keyPair = Ed25519Sign.KeyPair.newKeyPair();
    Ed25519Sign signer = new Ed25519Sign(keyPair.getPrivateKey());
    Ed25519Verify verifier = new Ed25519Verify(keyPair.getPublicKey());

    byte[] msg = Random.randBytes(20);
    testSigningSameMessage(signer, verifier, true, msg, 5, 20);
    testSigningDistinctMessages(signer, verifier, true, 64, 5, 20);
  }
Sign the same message concurrently in multiple threads. The purpose of this test is to find
non-deterministic signatures schemes, that reuse nonces when signing concurrently.
java_src/src/test/java/com/google/crypto/tink/subtle/SignatureThreadSafetyTest.java