Class OctoTrustSchnorr
java.lang.Object
love.distributedrebirth.nx01.no2all.nostr.octo.trust.OctoTrustSchnorr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static byte[]
protected static BigInteger
bytesToBigInt
(byte[] b) static byte[]
extractPublicKey
(byte[] secKey) static byte[]
sign
(byte[] msg, byte[] secKey, byte[] auxRand) static boolean
verify
(byte[] msg, byte[] pubkey, byte[] sig) protected static byte[]
xor
(byte[] b0, byte[] b1)
-
Constructor Details
-
OctoTrustSchnorr
public OctoTrustSchnorr()
-
-
Method Details
-
sign
public static byte[] sign(byte[] msg, byte[] secKey, byte[] auxRand) -
verify
public static boolean verify(byte[] msg, byte[] pubkey, byte[] sig) -
extractPublicKey
public static byte[] extractPublicKey(byte[] secKey) -
xor
protected static byte[] xor(byte[] b0, byte[] b1) -
bigIntToBytes
-
bytesToBigInt
-