Class OctoTrustSchnorr
java.lang.Object
love.distributedrebirth.nx01.no2all.nostr.octo.trust.OctoTrustSchnorr
Nostr octo trust schnorr.
- Version:
- ©Δ∞ 仙上主天
- Author:
- للَّٰهِilLצسُو
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static byte[]protected static BigIntegerbytesToBigInt(byte[] b) static byte[]extractPublicKey(byte[] secKey) static byte[]sign(byte[] msg, byte[] secKey, byte[] auxRand) static booleanverify(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
-