View source: R/EllipticCurves.R
ecpoint | R Documentation |
This function returns an object of S4-class ECPOINT
,
that does represent a point on an elliptic curve.
ecpoint(ecparam = NULL, x, y, r = NULL)
ecparam |
|
x |
x-coordinate, to be coercible to |
y |
y-coordinate, to be coercible to |
r |
the order of the base point. |
An object of S4-class ECPOINT
Bernhard Pfaff
https://en.bitcoin.it/wiki/Secp256k1
Other EllipticCurve: ECPARAM-class
,
ECPOINT-class
,
EcparamOrNull-class
,
containsPoint
, ecoperators
,
ecparam
, isNull
p <- "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F"
b <- "0x0000000000000000000000000000000000000000000000000000000000000007"
a <- "0x0000000000000000000000000000000000000000000000000000000000000000"
r <- "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141"
x <- "0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798"
y <- "0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
curve256 <- ecparam(p, a, b)
ecp <- ecpoint(curve256, x, y, r)
ecp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.