Comparing version 0.0.82 to 0.0.83
@@ -673,5 +673,5 @@ import { check } from "./system"; | ||
export function modExp(base: U256, exp: U256, mod: U256): U256 { | ||
const rawBase = Utils.hexToBytes(base.toString(16)); | ||
const rawExp = Utils.hexToBytes(exp.toString(16)); | ||
const rawMod = Utils.hexToBytes(mod.toString(16)); | ||
const rawBase = Utils.hexToBytes(base.toString(16).padStart(32, '0')); | ||
const rawExp = Utils.hexToBytes(exp.toString(16).padStart(32, '0')); | ||
const rawMod = Utils.hexToBytes(mod.toString(16).padStart(32, '0')); | ||
const rawResult = new Array<u8>(32); | ||
@@ -678,0 +678,0 @@ const ret = env.mod_exp(rawBase.dataStart, rawBase.length, rawExp.dataStart, rawExp.length, rawMod.dataStart, rawMod.length, rawResult.dataStart, rawResult.length) |
{ | ||
"name": "as-chain", | ||
"version": "0.0.82", | ||
"version": "0.0.83", | ||
"description": "chain module for assemblyscript", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1576559