Observed since 21 Oct, 09:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0xmhha/accounts
StableNet accounts SDK (TypeScript) — clean-room, conformance-tested against the shared golden vectors.
TypeScript SDK for StableNet accounts — a clean-room implementation mirroring the Go SDK (0xmhha/accounts) and verified against the same conformance golden vectors, so both languages produce byte-identical outputs.
Standalone repository. The golden vectors in
vectors/core.jsonare synced from the Go repo (conformance/vectors/core.json) — update them together so both SDKs stay conformant.
@noble/hashes, @noble/curves, @noble/ciphers,
@scure/bip39, @scure/bip32 (MIT).| Module | Contents |
|---|---|
crypto | Keccak-256, secp256k1 sign/recover, address derivation |
rlp | minimal RLP encoder |
tx | EIP-155 legacy signing, CREATE / CREATE2 addressing |
txtypes | AccessList (0x01), DynamicFee (0x02), Blob (0x03), SetCode (0x04), FeeDelegate (0x16) sign/encode |
account | Account facade (create/import, sign, keystore, ECIES) + Extra bitmap decode |
eip191 | personal_sign digest |
eip712 | typed-data digest |
keystore | Web3 Secret Storage (v3) encrypt + decrypt |
ecies | encrypt to / decrypt from a public key (interoperable with Go) |
hdwallet | BIP-39 mnemonic + BIP-32/44 derivation |
abi | minimal ABI encoder/decoder for contract calls |
token | ERC-20 / NativeCoinAdapter bindings + EIP-2612 permit + EIP-3009 |
transport | JSON-RPC client (fetch) + account Extra-flag queries |
wallet | high-level facade: auto nonce/gas/tip + blacklist guard, send/deploy/execute |
governance | read bindings (validator/minter/blacklist) |
guard | value-transfer safety guards |
bytes | hex/byte utilities |
At parity with the Go SDK (offline surface). The RPC layer is verified with a mock JSON-RPC client; live-node checks are covered by the Go e2e.
npm install
npm test # vitest: conformance vs shared golden vectors
npm run typecheck
npm run build
import { privKeyToAddress, signLegacy, createAddress2 } from "@0xmhha/accounts";
Apache-2.0 OR MIT.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
@noble/ciphersEnvironment{
"local_name": "@noble/ciphers",
"alias": false,
"peer_metadata": null
} | ^1.0.0 | runtime |
@noble/curvesEnvironment{
"local_name": "@noble/curves",
"alias": false,
"peer_metadata": null
} | 1.4.0 | runtime |
@noble/hashesEnvironment{
"local_name": "@noble/hashes",
"alias": false,
"peer_metadata": null
} | 1.4.0 | runtime |
@scure/bip32Environment{
"local_name": "@scure/bip32",
"alias": false,
"peer_metadata": null
} | ^1.4.0 | runtime |
@scure/bip39Environment{
"local_name": "@scure/bip39",
"alias": false,
"peer_metadata": null
} | ^1.3.0 | runtime |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | 5.4.5 | development |
vitestEnvironment{
"local_name": "vitest",
"alias": false,
"peer_metadata": null
} | 1.6.0 | development |
Source distribution
{
"integrity": "sha512-eDA+3Ki+5p+aJsM0PW3p8d1ow9wUO1djdgPiQvHM50mH7USMMjAtUNyUNUdviaHwGuW93IaDkxcvKiTs1k7tWA==",
"shasum": "87d918abe0ea6e5eb034046081f5d8902d34da5c",
"tarball": "https://registry.npmjs.org/@0xmhha/accounts/-/accounts-0.1.0.tgz",
"fileCount": 41,
"unpackedSize": 67691,
"signatures": [
{
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
"sig": "MEUCIFWxAE6qSECTLnxpBitZLUQRvJijKykgujgzARq2irI0AiEA70Vhr5Kiloq/CC39gC2od1Tytd4N/DBmyNKNbuHA+dM="
}
]
}Observed since 21 Oct, 09:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:bf83a2c6716d21049b4a66cb1a20e9868b5d73c5870a05f2d4769ec94eb4e02d