Class Schnorr


  • public class Schnorr
    extends Object

    Schnorr Signatures for secp256k1

    BIP-0340
    • Field Detail

      • P

        public static final Int P
    • Method Detail

      • sign

        public static byte[] sign​(byte[] msg,
                                  byte[] seckey,
                                  byte[] auxRand)

        sign

        Parameters:
        msg - .
        seckey - .
        auxRand - .
        Returns:
        .
      • verify

        public static boolean verify​(byte[] msg,
                                     byte[] pubkey,
                                     byte[] sig)

        verify

        Parameters:
        msg - .
        pubkey - .
        sig - .
        Returns:
        .