Package org.polkadot.utils.crypto
Class Schnorrkel
- java.lang.Object
-
- org.polkadot.utils.crypto.Schnorrkel
-
public class Schnorrkel extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Schnorrkel()
-
Method Summary
Modifier and Type Method Description static Types.KeypairschnorrkelKeypairFromSeed(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 pairstatic booleanschnorrkelVerify(byte[] message, byte[] signature, byte[] publicKey)Verifies the signature of `message`, using the supplied pair
-
-
-
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
-
-