public class ECPoint extends Object
| 构造器和说明 |
|---|
ECPoint(byte[] bytes,
EllipticCurve curve)
Decompresses a compressed point stored in a byte-array into a new ECPoint.
|
ECPoint(EllipticCurve e)
IMPORTANT this renders the values of x and y to be null!
|
ECPoint(EllipticCurve curve,
BigInteger x,
BigInteger y)
Constructs a point on an elliptic curve.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ECPoint |
add(ECPoint q)
在曲线上计算两点相加的第三个点:point c = point a + point b
|
byte[] |
compress()
compress the point as byte array data
|
void |
fastCache() |
EllipticCurve |
getCurve() |
BigInteger |
getX() |
BigInteger |
getY() |
boolean |
isZero() |
ECPoint |
multiply(BigInteger k)
计算k倍点
|
String |
toString() |
public ECPoint(EllipticCurve curve, BigInteger x, BigInteger y)
curve - The elliptic curve on wich the point is surposed to liex - The x coordinate of the pointy - The y coordinate of the pointpublic ECPoint(byte[] bytes,
EllipticCurve curve)
bytes - the array of bytes to be decompressedcurve - the EllipticCurve the decompressed point is supposed to lie on.public ECPoint(EllipticCurve e)
public void fastCache()
public byte[] compress()
public ECPoint add(ECPoint q)
q - The point to be addedpublic ECPoint multiply(BigInteger k)
k - public boolean isZero()
public BigInteger getX()
public BigInteger getY()
public EllipticCurve getCurve()
Copyright © 2023. All rights reserved.