PublicKey class

PublicKey represents a public key which is a point on a 2d Curve, taking BigInt X, Y as the coordinates on axis

Inheritance

Constructors

PublicKey(Curve curve, BigInt X, BigInt Y)
PublicKey.fromHex(Curve curve, String hex)
fromHex will auto detect the hex type, which means hex can be compressed or not
PublicKey.fromPoint(Curve curve, AffinePoint p)

Properties

curve Curve
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
X BigInt
getter/setter pairinherited
Y BigInt
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCompressedHex() String
toCompressedHex generate a compressed hex string from a public key
toHex() String
toHex generate a compressed hex string from a public key
toString() String
toString equals to toHex
override

Operators

operator ==(Object other) bool
The equality operator.
override