ecpoint: Creating objects of class ECPOINT

Description Usage Arguments Value Author(s) References See Also Examples

Description

This function returns an object of S4-class ECPOINT, that does represent a point on an elliptic curve.

Usage

1
ecpoint(ecparam = NULL, x, y, r = NULL)

Arguments

ecparam

integerECPARAM

x

x-coordinate, to be coercible to bigz.

y

y-coordinate, to be coercible to bigz.

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

1
2
3
4
5
6
7
8
9
p <- "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F"
b <- "0x0000000000000000000000000000000000000000000000000000000000000007"
a <- "0x0000000000000000000000000000000000000000000000000000000000000000"
r <- "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141"
x <- "0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798"
y <- "0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
curve256 <- ecparam(p, a, b)
ecp <- ecpoint(curve256, x, y, r)
ecp

bpfaff/rbtc documentation built on May 13, 2019, 5:34 p.m.