public class NativeSecp256k1 extends Object
This class holds native methods to handle ECDSA verification.
You can find an example library that can be used for this at https://github.com/sipa/secp256k1
To build secp256k1 for use with bitcoinj, run `./configure` and `make libjavasecp256k1.so` then copy libjavasecp256k1.so to your system library path or point the JVM to the folder containing it with -Djava.library.path
| Modifier and Type | Field and Description | 
|---|---|
| static boolean | enabled | 
| Constructor and Description | 
|---|
| NativeSecp256k1() | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | verify(byte[] data,
      byte[] signature,
      byte[] pub)Verifies the given secp256k1 signature in native code. | 
public static boolean verify(byte[] data,
             byte[] signature,
             byte[] pub)
data - The data which was signed, must be exactly 32 bytessignature - The signaturepub - The public key which did the signingCopyright © 2014. All rights reserved.