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