Export Schnorr signature API (#32)

Implement Schnorr signatures (BIP 340)
This commit is contained in:
Fabrice Drouin
2021-11-23 17:38:46 +01:00
committed by GitHub
parent 5ee01ea526
commit ac7d4983d5
11 changed files with 232 additions and 6 deletions

View File

@@ -64,4 +64,8 @@ public class Secp256k1CFunctions {
public static native byte[] secp256k1_ecdsa_recover(long ctx, byte[] sig, byte[] msg32, int recid);
public static native byte[] secp256k1_compact_to_der(long ctx, byte[] sig);
public static native byte[] secp256k1_schnorrsig_sign(long ctx, byte[] msg, byte[] seckey, byte[] aux_rand32);
public static native int secp256k1_schnorrsig_verify(long ctx, byte[] sig, byte[] msg, byte[] pubkey);
}