ecoperators-methods: Elliptic curve operators

ecoperatorsR Documentation

Elliptic curve operators

Description

The following operarations 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 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


rbtc documentation built on Oct. 20, 2024, 5:06 p.m.