
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
128 and 256 bits integer and fixed point arithmetics for AssemblyScript. Also support checking overflow/underflow
Provide wide numeric types such as u128
, u256
, i128
, i256
and fixed points and also its arithmetic operations.
Namespace safe
contain equivalents with overflow/underflow traps.
All kind of types pretty useful for economical and cryptographic usages and provide deterministic behavior.
yarn add as-bignum
or
npm i as-bignum
import { u128 } from "as-bignum/assembly";
// Before 0.20.x
// import { u128 } from "as-bignum";
declare function logF64(value: f64): void;
declare function logU128(hi: u64, lo: u64): void;
var a = u128.One;
var b = u128.from(-32); // same as u128.from<i32>(-32)
var c = new u128(0x1, -0xF);
var d = u128.from(0x0123456789ABCDEF); // same as u128.from<i64>(0x0123456789ABCDEF)
var e = u128.from('0x0123456789ABCDEF01234567');
var f = u128.fromString('11100010101100101', 2); // same as u128.from('0b11100010101100101')
var r = d / c + (b << 5) + e;
logF64(r.as<f64>());
logU128(r.hi, r.lo);
TODO
safe.u128
unsigned type (tested)
safe.u256
unsigned type
safe.i128
signed type
safe.i256
signed type
fp128<Q>
generic fixed point signed type٭ (very basic for now)fp256<Q>
generic fixed point signed type٭safe.fp128<Q>
generic fixed point signed type٭safe.fp256<Q>
generic fixed point signed type٭٭ typename Q
is a type representing count of fractional bits
FAQs
128 and 256 bits integer and fixed point arithmetics for AssemblyScript. Also support checking overflow/underflow
The npm package as-bignum receives a total of 244 weekly downloads. As such, as-bignum popularity was classified as not popular.
We found that as-bignum demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.