/product-sdk:product-sdk-utilitiesfrom product-sdk
Provides Polkadot SDK utilities for SS58/H160 address encoding/validation, encryption (AES, ChaCha, NaCl, HKDF), byte encoding/hashing, token formatting (planck), key-value storage, and structured logging.
Ships in product-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Five leaf packages provide foundational utilities. All are pure TypeScript and framework-agnostic.
| Need | Package | Import |
|---|---|---|
| SS58/H160 address encoding, validation, conversion | address | @parity/product-sdk-address |
| Encryption (AES-GCM, ChaCha20), key derivation (HKDF), NaCl | crypto | @parity/product-sdk-crypto |
| Byte encoding, hashing, token formatting (planck) | utils | @parity/product-sdk-utils |
| Persistent key-value storage | storage | @parity/product-sdk-local-storage |
| Structured logging | logger | @parity/product-sdk-logger |
import {
isValidSs58,
ss58Decode,
ss58Encode,
normalizeSs58,
ss58ToH160,
h160ToSs58,
truncateAddress,
} from "@parity/product-sdk-address";
isValidSs58("5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"); // true
const { publicKey, prefix } = ss58Decode("5GrwvaEF...");
const polkadotAddr = normalizeSs58("5GrwvaEF...", 0);
const evmAddr = ss58ToH160("5GrwvaEF...");
truncateAddress("5GrwvaEF..."); // "5Grwva...utQY"
import {
xchachaEncrypt,
xchachaDecrypt,
deriveKey,
randomBytes,
sealedBoxEncrypt,
sealedBoxDecrypt,
} from "@parity/product-sdk-crypto";
const key = randomBytes(32);
const { ciphertext, nonce } = xchachaEncrypt(data, key);
const plaintext = xchachaDecrypt(ciphertext, key, nonce);
const encKey = deriveKey(masterSecret, "myapp-v1", "encryption");
import { bytesToHex, hexToBytes, utf8ToBytes, concatBytes } from "@parity/product-sdk-utils";
import { blake2b256, sha256, keccak256 } from "@parity/product-sdk-utils";
import { formatPlanck, parseToPlanck, formatBalance } from "@parity/product-sdk-utils";
const hex = bytesToHex(new Uint8Array([0xab, 0xcd]));
const hash = blake2b256(new TextEncoder().encode("hello"));
formatPlanck(10_000_000_000n); // "1.0" (DOT)
parseToPlanck("1.5"); // 15_000_000_000n
formatBalance(10_000_000_000_000n, { symbol: "DOT" }); // "1,000 DOT"
import { createLocalKvStore } from "@parity/product-sdk-local-storage";
const store = await createLocalKvStore({ prefix: "myapp" });
await store.set("theme", "dark");
const theme = await store.get("theme");
await store.setJSON("prefs", { lang: "en" });
const prefs = await store.getJSON<{ lang: string }>("prefs");
import { createLogger, configure } from "@parity/product-sdk-logger";
const log = createLogger("my-feature");
log.error("Connection failed", { url, status });
log.info("Connected");
log.debug("Payload received", payload);
configure({ level: "debug", namespaces: ["my-feature"] });
normalizeSs58() firstss58ToH160 is reversible for native accounts - Keccak256 derivation is one-waychachaEncrypt for high-volume random nonces - Use xchachaEncrypt insteadderiveKey() to derive proper keys0x-prefixed string to hexToBytes - Strip it first: hex.slice(2)createLocalKvStore synchronously - It returns a Promise, always awaitconfigure() only affects future loggers - It affects all existing instancesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
polkadot, ss58, address-encoding, crypto-utils, product-sdk, token-formatting
3 plugins in 2 repositories ship this exact skill · first indexed Jun 6, 2026
11 skills in this plugin
/migrating-to-product-sdkUse when migrating a product codebase to @parity/product-sdk — detects legacy stacks (polkadot-apps, novasamatech, hand-rolled crypto/IPFS, polkadot-api 1.x) in the target repo, decides which migration areas apply, writes a per-repo migration spec, then hands off to writing-plans.
/product-sdk-app-builderEnd-to-end scaffolding and implementation of Polkadot applications using @parity/product-sdk packages. Use when: creating a new Polkadot project, building a dApp, scaffolding chain interactions, choosing which @parity/product-sdk packages to install, or when a user says "build me a Polkadot app". Handles both developer-guided and fully autonomous (non-developer) workflows.
/npx claudepluginhub paritytech/product-sdk --plugin product-sdkOther plugins' skills for the same job