Package com.bitsofproof.supernode.common

Examples of com.bitsofproof.supernode.common.ECKeyPair.verify()


    random.nextBytes (data);
    byte[] signature = key.sign (data);
    long cpu = -mxb.getCurrentThreadUserTime ();
    for ( int i = 0; i < 100; ++i )
    {
      assertTrue (key.verify (data, signature));
    }
    cpu += mxb.getCurrentThreadUserTime ();
    double speed = 100.0 / (cpu / 10.0e9);
    log.info ("ECDSA validation speed : " + speed + " signatures/second");
    assertTrue (speed > 100.0);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.