containsPoint | R Documentation |
Checks whether a point is on a defined ellipctic curve.
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)
curve |
an S4-object of class |
x |
an S4-object of class |
y |
an S4-object of class |
logical
Bernhard Pfaff
https://en.bitcoin.it/wiki/Secp256k1
Other EllipticCurve: ECPARAM-class
,
ECPOINT-class
,
EcparamOrNull-class
,
ecoperators
, ecparam
,
ecpoint
, isNull
p <- "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F"
b <- "0x0000000000000000000000000000000000000000000000000000000000000007"
a <- "0x0000000000000000000000000000000000000000000000000000000000000000"
curve256 <- ecparam(p, a, b)
Gx <- "0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798"
Gy <- "0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
containsPoint(curve256, Gx, Gy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.