Learn R Programming

rbch (version 0.1-2)

ecoperators: Elliptic curve operators

Description

The following operations for EC points are available:

  • doubleUp multiplying a point by itself

  • + point addition

  • leftmostBit highest bit value of an integer

  • AND logical and-operator for two integers

  • * multiplication of an integer scalar with an EC point

Usage

doubleUp(ecp)

# S4 method for ECPOINT doubleUp(ecp)

# S4 method for ECPOINT,ECPOINT +(e1, e2)

leftmostBit(x)

# S4 method for bigz leftmostBit(x)

AND(x, y)

# S4 method for bigz,bigz AND(x, y)

# S4 method for ECPOINT,bigz *(e1, e2)

# S4 method for 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

Bernhard Pfaff

References

https://en.bitcoin.it/wiki/Secp256k1

See Also

Other EllipticCurve: ECPARAM-class, ECPOINT-class, EcparamOrNull-class, containsPoint(), ecparam(), ecpoint(), isNull()