struct Secp256k1::EC_Point

Overview

A point in the two-dimensional space of an elliptic curve.

Properties:

p = EC_Point.new BigInt.new(0), BigInt.new(0)
p.x
# => 0
p.y
# => 0

Defined in:

structs.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : BigInt, y : BigInt) #

An EC_Point always requires two coordinates #x, #y.

Parameters:

  • #x (BigInt): the position on the x-axis.
  • #y (BigInt): the position on the y-axis.

[View source]

Instance Method Detail

def x : BigInt #

The position on the x-axis.


[View source]
def x=(x : BigInt) #

The position on the x-axis.


[View source]
def y : BigInt #

The position on the y-axis.


[View source]
def y=(y : BigInt) #

The position on the y-axis.


[View source]