PublicKeyLike

org.sigilaris.core.crypto.PublicKeyLike

Cross-platform minimal PublicKey surface to unify JS/JVM APIs.

Represents an uncompressed secp256k1 public key with explicit x and y coordinates. The 64-byte representation consists of x and y coordinates concatenated (x||y), each being 32 bytes, big-endian.

Attributes

See also

org.sigilaris.core.crypto.PublicKey for platform-specific implementations

Source
PublicKeyLike.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait PublicKey
class Point
class XY

Members list

Value members

Abstract methods

def toBytes: ByteVector

Returns the 64-byte uncompressed public key representation.

Returns the 64-byte uncompressed public key representation.

Attributes

Returns

64 bytes = x (32 bytes) || y (32 bytes), big-endian

Source
PublicKeyLike.scala
def x: UInt256

X-coordinate of the elliptic curve point.

X-coordinate of the elliptic curve point.

Attributes

Returns

x-coordinate as 32-byte datatype.UInt256

Source
PublicKeyLike.scala
def y: UInt256

Y-coordinate of the elliptic curve point.

Y-coordinate of the elliptic curve point.

Attributes

Returns

y-coordinate as 32-byte datatype.UInt256

Source
PublicKeyLike.scala