
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@ethernauta/utils
Advanced tools
Pure dependency-free helpers for Ethernauta — hex, bytes, BigInt, type guards.
This module is a set of small, dependency-free utilities used across the other packages. It is intentionally generic — nothing here knows about Ethereum, chains, or transactions. Pure, side-effect-free, no third-party runtime dependencies. No new dependencies in @ethernauta/utils is a hard rule of the monorepo.
import { bytes_to_hex, hex_to_bytes, strip_hex_prefix } from "@ethernauta/utils"
const hex = bytes_to_hex(new Uint8Array([0xde, 0xad, 0xbe, 0xef])) // "0xdeadbeef"
const bytes = hex_to_bytes("0xdeadbeef") // Uint8Array
const stripped = strip_hex_prefix("0xdeadbeef") // "deadbeef"
import { hex_to_number, number_to_hex } from "@ethernauta/utils"
const hex = number_to_hex(255) // "0xff"
const value = hex_to_number("0xff") // 255
import { bytes_to_uint } from "@ethernauta/utils"
const n = bytes_to_uint(new Uint8Array([0x01, 0x00])) // 256n
import { rlp_encode, type RlpInput } from "@ethernauta/utils"
const encoded = rlp_encode([
new Uint8Array([0x01]),
new Uint8Array([0x02, 0x03]),
])
import {
format_ether, format_gwei, format_unit,
parse_ether, parse_gwei, parse_unit,
} from "@ethernauta/utils"
format_ether(1_000_000_000_000_000_000n) // "1"
format_gwei(2_000_000_000n) // "2"
format_unit(123_456n, 4) // "12.3456"
parse_ether("1.5") // 1500000000000000000n
parse_gwei("2") // 2000000000n
parse_unit("12.34", 4) // 123400n
import { seconds_to_big, now_to_big, deadline_in } from "@ethernauta/utils"
const now = now_to_big() // BigInt seconds since epoch
const in_one_minute = deadline_in(60) // now + 60
const ms_as_bigint = seconds_to_big(30) // 30n
import { camel_to_kebab } from "@ethernauta/utils"
camel_to_kebab("transferFrom") // "transfer-from"
invariantimport { invariant } from "@ethernauta/utils"
const input: string | null = "helloWorld"
invariant(typeof input === "string", "input must be a string")
// input is narrowed to `string` from here on
FAQs
Pure dependency-free helpers for Ethernauta — hex, bytes, BigInt, type guards.
The npm package @ethernauta/utils receives a total of 577 weekly downloads. As such, @ethernauta/utils popularity was classified as not popular.
We found that @ethernauta/utils 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.