Package ch.bitagent.bitcoin.lib.ecc
Class S256Field
- java.lang.Object
-
- ch.bitagent.bitcoin.lib.ecc.FieldElement
-
- ch.bitagent.bitcoin.lib.ecc.S256Field
-
- All Implemented Interfaces:
PointOperators
public class S256Field extends FieldElement
A finite field on a secp256k1 elliptic curve
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S256Fieldadd(PointOperators otherPoint)add.S256Fieldpow(Int divisor)pow.S256Fieldsqrt()sqrt.StringtoString()
-
-
-
Field Detail
-
P
public static final Int P
ConstantP
-
-
Method Detail
-
add
public S256Field add(PointOperators otherPoint)
add.
- Specified by:
addin interfacePointOperators- Overrides:
addin classFieldElement- Parameters:
otherPoint- aPointOperatorsobject- Returns:
- a
PointOperatorsobject
-
pow
public S256Field pow(Int divisor)
pow.
- Specified by:
powin interfacePointOperators- Overrides:
powin classFieldElement- Parameters:
divisor- aIntobject- Returns:
- a
PointOperatorsobject
-
toString
public String toString()
- Overrides:
toStringin classFieldElement
-
-