containsPoint-methods: containsPoint-methods

containsPointR Documentation

containsPoint-methods

Description

Checks whether a point is on a defined ellipctic curve.

Usage

containsPoint(curve, x, y)

## S4 method for signature 'ECPARAM,bigz,bigz'
containsPoint(curve, x, y)

## S4 method for signature 'ECPARAM,integer,integer'
containsPoint(curve, x, y)

## S4 method for signature 'ECPARAM,character,character'
containsPoint(curve, x, y)

Arguments

curve

an S4-object of class ECPARAM.

x

an S4-object of class bigz, the x-coordinate.

y

an S4-object of class bigz, the y-coordinate.

Value

logical

Author(s)

Bernhard Pfaff

References

https://en.bitcoin.it/wiki/Secp256k1

See Also

Other EllipticCurve: ECPARAM-class, ECPOINT-class, EcparamOrNull-class, ecoperators, ecparam, ecpoint, isNull

Examples

p <- "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F"
b <- "0x0000000000000000000000000000000000000000000000000000000000000007"
a <- "0x0000000000000000000000000000000000000000000000000000000000000000"
curve256 <- ecparam(p, a, b)
Gx <- "0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798"
Gy <- "0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
containsPoint(curve256, Gx, Gy)

rbtc documentation built on Oct. 20, 2024, 5:06 p.m.