
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@webmobix/isin-lib-js
Advanced tools
A JavaScript/TypeScript library for reversible conversion between International Securities Identification Numbers (ISINs) and uint256 (represented as BigInt) values using base36 encoding.
A JavaScript/TypeScript library for reversible conversion between International Securities Identification Numbers (ISINs) and uint256 (represented as BigInt) values using base36 encoding.
This library is essential for applications that need to bridge traditional financial identifiers (ISINs) with Ethereum Virtual Machine (EVM)-based smart contract identifiers (uint256), particularly in Node.js backend services or browser-based front-end applications.
Financial instruments are globally identified by ISINs, which are 12-character alphanumeric codes. However, smart contracts on EVM blockchains often use uint256 integers as unique identifiers (e.g., for NFTs). This creates a data type mismatch. isin-lib-js solves this by providing a standardized, reversible way to convert ISINs to uint256 values (and back) using base36 encoding. This ensures a reliable one-to-one mapping, crucial for integrating traditional financial assets with blockchain applications.
For a deeper dive into the challenge and our comprehensive solution, please read our article: https://webmobix.com
npm install @webmobix/isin-lib-js
CommonJS (Node.js):
const { isinToUint256, uint256ToIsin } = require("@webmobix/isin-lib-js");
ES Modules / TypeScript:
import { isinToUint256, uint256ToIsin } from "@webmobix/isin-lib-js";
const isin = 'US0378331005'; // Example Apple Inc. ISIN
try {
const uint256Value = isinToUint256(isin);
console.log(`ISIN: ${isin}`);
console.log(`uint256 (BigInt): ${uint256Value.toString()}`);
// Example: For "US0378331005", this would output a specific BigInt value.
} catch (error) {
console.error((error as Error).message);
}
// This BigInt value would typically come from a smart contract or a previous conversion.
// Replace with an actual BigInt value obtained from isinToUint256.
const exampleUint256Value = BigInt("33366803344263005"); // Placeholder for 'US0378331005'
try {
const isin = uint256ToIsin(exampleUint256Value);
console.log(`uint256 (BigInt): ${exampleUint256Value.toString()}`);
console.log(`ISIN: ${isin}`);
// This would output the ISIN corresponding to the exampleUint256Value,
// correctly padded with leading zeros if necessary. e.g., 'US0378331005'
} catch (error) {
console.error((error as Error).message);
}
isinToUint256(isin: string): BigInt
uint256ToIsin(value: BigInt): string
This library is part of a suite designed to provide consistent ISIN <=> uint256 conversion across different environments:
Contributions are welcome! Please feel free to submit issues or pull requests.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
FAQs
A JavaScript/TypeScript library for reversible conversion between International Securities Identification Numbers (ISINs) and uint256 (represented as BigInt) values using base36 encoding.
We found that @webmobix/isin-lib-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.