Beispiel #1
0
 public BigNumber modPow(BigNumber val1, BigNumber val2) {
   return new BigNumber(bigInteger.modPow(val1.getInt(), val2.getInt()));
 }
Beispiel #2
0
 public BigNumber add(BigNumber val) {
   return new BigNumber(bigInteger.add(val.getInt()));
 }
Beispiel #3
0
 public BigNumber multiply(BigNumber val) {
   return new BigNumber(bigInteger.multiply(val.getInt()));
 }
Beispiel #4
0
 public BigNumber remainder(BigNumber val) {
   return new BigNumber(bigInteger.remainder(val.getInt()));
 }
Beispiel #5
0
 public boolean equals(BigNumber b) {
   return (b.toHexString().equals(this.toHexString()));
 }