PublicKey class Null safety

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
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
X BigInt
read / write, inherited
Y BigInt
read / write, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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