Class OctoTrustSchnorrPoint
java.lang.Object
love.distributedrebirth.nx01.no2all.nostr.octo.trust.OctoTrustSchnorrPoint
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(OctoTrustSchnorrPoint point) static OctoTrustSchnorrPoint
add
(OctoTrustSchnorrPoint point1, OctoTrustSchnorrPoint point2) static byte[]
boolean
equals
(OctoTrustSchnorrPoint point) static byte[]
genPubKey
(byte[] secKey) static OctoTrustSchnorrPoint
getG()
static BigInteger
getn()
static BigInteger
getp()
getX()
static BigInteger
getX
(OctoTrustSchnorrPoint point) getY()
static BigInteger
getY
(OctoTrustSchnorrPoint point) boolean
hasEvenY()
static boolean
hasEvenY
(OctoTrustSchnorrPoint point) boolean
static boolean
hasSquareY
(OctoTrustSchnorrPoint point) static OctoTrustSchnorrPoint
boolean
static boolean
isInfinite
(OctoTrustSchnorrPoint point) static boolean
static OctoTrustSchnorrPoint
liftX
(byte[] b) mul
(BigInteger n) static OctoTrustSchnorrPoint
mul
(OctoTrustSchnorrPoint point, BigInteger n) static byte[]
taggedHash
(String tag, byte[] msg) byte[]
toBytes()
-
Field Details
-
G
-
-
Constructor Details
-
OctoTrustSchnorrPoint
-
-
Method Details
-
getp
-
getn
-
getG
-
getX
-
getY
-
getX
-
getY
-
isInfinite
public boolean isInfinite() -
isInfinite
-
add
-
add
-
mul
-
mul
-
hasEvenY
public boolean hasEvenY() -
hasEvenY
-
isSquare
-
hasSquareY
public boolean hasSquareY() -
hasSquareY
-
taggedHash
-
genPubKey
public static byte[] genPubKey(byte[] secKey) -
toBytes
public byte[] toBytes() -
bytesFromPoint
-
liftX
-
infinityPoint
-
equals
-