ecoperators {rbch} | R Documentation |
Elliptic curve operators
Description
The following operations for EC points are available:
doubleUpmultiplying a point by itself
+point addition
leftmostBithighest bit value of an integer
ANDlogical and-operator for two integers
*multiplication of an integer scalar with an EC point
Usage
doubleUp(ecp)
## S4 method for signature 'ECPOINT'
doubleUp(ecp)
## S4 method for signature 'ECPOINT,ECPOINT'
e1 + e2
leftmostBit(x)
## S4 method for signature 'bigz'
leftmostBit(x)
AND(x, y)
## S4 method for signature 'bigz,bigz'
AND(x, y)
## S4 method for signature 'ECPOINT,bigz'
e1 * e2
## S4 method for signature 'bigz,ECPOINT'
e1 * e2
Arguments
ecp |
point on elliptic curve |
e1 |
point on elliptic curve, or integer |
e2 |
point on elliptic curve, or integer |
x |
integer |
y |
integer |
Author(s)
Bernhard Pfaff
References
https://en.bitcoin.it/wiki/Secp256k1
See Also
Other EllipticCurve:
ECPARAM-class
,
ECPOINT-class
,
EcparamOrNull-class
,
containsPoint()
,
ecparam()
,
ecpoint()
,
isNull()
[Package rbch version 0.1-1 Index]