Class Schnorrkel


  • public class Schnorrkel
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Schnorrkel()  
    • Method Summary

      Modifier and Type Method Description
      static Types.Keypair schnorrkelKeypairFromSeed​(byte[] seed)
      Returns a object containing a `publicKey` & `secretKey` generated from the supplied seed.
      static byte[] schnorrkelSign​(byte[] message, Types.Keypair keypair)
      Returns message signature of `message`, using the supplied pair
      static boolean schnorrkelVerify​(byte[] message, byte[] signature, byte[] publicKey)
      Verifies the signature of `message`, using the supplied pair
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Schnorrkel

        public Schnorrkel()
    • Method Detail

      • schnorrkelKeypairFromSeed

        public static Types.Keypair schnorrkelKeypairFromSeed​(byte[] seed)
        Returns a object containing a `publicKey` & `secretKey` generated from the supplied seed.
      • schnorrkelSign

        public static byte[] schnorrkelSign​(byte[] message,
                                            Types.Keypair keypair)
        Returns message signature of `message`, using the supplied pair
      • schnorrkelVerify

        public static boolean schnorrkelVerify​(byte[] message,
                                               byte[] signature,
                                               byte[] publicKey)
        Verifies the signature of `message`, using the supplied pair