(BigInteger scalar, ExtendedStarknetPoint point)
| 3142 | } |
| 3143 | |
| 3144 | private static ExtendedStarknetPoint extendedEcMult(BigInteger scalar, ExtendedStarknetPoint point) |
| 3145 | { |
| 3146 | if (scalar.equals(BigInteger.ONE)) { |
| 3147 | return point; |
| 3148 | } |
| 3149 | if (scalar.mod(BigInteger.valueOf(2)).equals(BigInteger.ZERO)) { |
| 3150 | return extendedEcMult(scalar.divide(BigInteger.valueOf(2)), extendedEcDouble(point)); |
| 3151 | } |
| 3152 | return extendedEcAdd(extendedEcMult(scalar.subtract(BigInteger.ONE), point), point); |
| 3153 | } |
| 3154 | |
| 3155 | private static class ExtendedStarknetPoint { |
| 3156 | BigInteger x; |
no test coverage detected