ecpoint {rbtc} | R Documentation |
Creating objects of class ECPOINT
Description
This function returns an object of S4-class ECPOINT
,
that does represent a point on an elliptic curve.
Usage
ecpoint(ecparam = NULL, x, y, r = NULL)
Arguments
ecparam |
|
x |
x-coordinate, to be coercible to |
y |
y-coordinate, to be coercible to |
r |
the order of the base point. |
Value
An object of S4-class ECPOINT
Author(s)
Bernhard Pfaff
References
https://en.bitcoin.it/wiki/Secp256k1
See Also
Other EllipticCurve: ECPARAM-class
,
ECPOINT-class
,
EcparamOrNull-class
,
containsPoint
, ecoperators
,
ecparam
, isNull
Examples
p <- "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F"
b <- "0x0000000000000000000000000000000000000000000000000000000000000007"
a <- "0x0000000000000000000000000000000000000000000000000000000000000000"
r <- "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141"
x <- "0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798"
y <- "0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
curve256 <- ecparam(p, a, b)
ecp <- ecpoint(curve256, x, y, r)
ecp
[Package rbtc version 0.1-6 Index]