kaspeak-sdk / Point
Class: Point¶
Defined in: crypto/secp256k1.ts:59
Constructors¶
Constructor¶
new Point(
x
,y
,z
):Point
Defined in: crypto/secp256k1.ts:60
Parameters¶
x¶
bigint
y¶
bigint
z¶
bigint
Returns¶
Point
Properties¶
x¶
readonly
x:bigint
Defined in: crypto/secp256k1.ts:61
y¶
readonly
y:bigint
Defined in: crypto/secp256k1.ts:62
z¶
readonly
z:bigint
Defined in: crypto/secp256k1.ts:63
Methods¶
equals()¶
equals(
other
):boolean
Defined in: crypto/secp256k1.ts:92
Parameters¶
other¶
Point
Returns¶
boolean
negate()¶
negate():
Point
Defined in: crypto/secp256k1.ts:96
Returns¶
Point
toAffine()¶
toAffine():
Point
Defined in: crypto/secp256k1.ts:100
Returns¶
Point
toCompressed()¶
toCompressed():
Uint8Array
Defined in: crypto/secp256k1.ts:113
Returns¶
Uint8Array
toRawX()¶
toRawX():
Uint8Array
Defined in: crypto/secp256k1.ts:135
Returns¶
Uint8Array
toUncompressed()¶
toUncompressed():
Uint8Array
Defined in: crypto/secp256k1.ts:123
Returns¶
Uint8Array
basePoint()¶
static
basePoint():Point
Defined in: crypto/secp256k1.ts:70
Returns¶
Point
fromAffine()¶
static
fromAffine(x
,y
):Point
Defined in: crypto/secp256k1.ts:66
Parameters¶
x¶
bigint
y¶
bigint
Returns¶
Point
fromBytes()¶
static
fromBytes(publicKey
):Point
Defined in: crypto/secp256k1.ts:74
Parameters¶
publicKey¶
Uint8Array
Returns¶
Point
fromHex()¶
static
fromHex(publicKey
):Point
Defined in: crypto/secp256k1.ts:88
Parameters¶
publicKey¶
string
Returns¶
Point