{"_id":"@0xmhha/accounts","name":"@0xmhha/accounts","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@0xmhha/accounts","version":"0.1.0","description":"StableNet accounts SDK (TypeScript) — clean-room, conformance-tested against the shared golden vectors.","type":"module","license":"(Apache-2.0 OR MIT)","author":{"name":"0xmhha"},"homepage":"https://github.com/0xmhha/accounts-ts","repository":{"type":"git","url":"git+https://github.com/0xmhha/accounts-ts.git"},"bugs":{"url":"https://github.com/0xmhha/accounts-ts/issues"},"keywords":["stablenet","ethereum","accounts","wallet","signing","eip-712","keystore","hdwallet"],"sideEffects":false,"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","typecheck":"tsc --noEmit -p tsconfig.json","prepublishOnly":"npm run build && npm test"},"dependencies":{"@noble/ciphers":"^1.0.0","@noble/curves":"1.4.0","@noble/hashes":"1.4.0","@scure/bip32":"^1.4.0","@scure/bip39":"^1.3.0"},"devDependencies":{"typescript":"5.4.5","vitest":"1.6.0"},"_id":"@0xmhha/accounts@0.1.0","gitHead":"8bae08e67521ed16b52604d4815d735717f3dc00","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"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="}]},"_npmUser":{"name":"0xmhha","email":"ryan.friends@kakao.com"},"directories":{},"maintainers":[{"name":"0xmhha","email":"ryan.friends@kakao.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/accounts_0.1.0_1785075751692_0.7175968888223314"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-26T14:22:31.523Z","0.1.0":"2026-07-26T14:22:31.852Z","modified":"2026-07-26T14:22:32.035Z"},"maintainers":[{"name":"0xmhha","email":"ryan.friends@kakao.com"}],"description":"StableNet accounts SDK (TypeScript) — clean-room, conformance-tested against the shared golden vectors.","homepage":"https://github.com/0xmhha/accounts-ts","keywords":["stablenet","ethereum","accounts","wallet","signing","eip-712","keystore","hdwallet"],"repository":{"type":"git","url":"git+https://github.com/0xmhha/accounts-ts.git"},"author":{"name":"0xmhha"},"bugs":{"url":"https://github.com/0xmhha/accounts-ts/issues"},"license":"(Apache-2.0 OR MIT)","readme":"# @0xmhha/accounts (TypeScript)\n\nTypeScript SDK for StableNet accounts — a **clean-room** implementation mirroring\nthe Go SDK ([0xmhha/accounts](https://github.com/0xmhha/accounts)) and verified\nagainst the **same** conformance golden vectors, so both languages produce\nbyte-identical outputs.\n\n> Standalone repository. The golden vectors in `vectors/core.json` are **synced\n> from the Go repo** (`conformance/vectors/core.json`) — update them together so\n> both SDKs stay conformant.\n\n- Permissive deps only: `@noble/hashes`, `@noble/curves`, `@noble/ciphers`,\n  `@scure/bip39`, `@scure/bip32` (MIT).\n- No go-stablenet (LGPL/GPL) code.\n\n## Cycle-1 surface\n\n| Module | Contents |\n|--------|----------|\n| `crypto` | Keccak-256, secp256k1 sign/recover, address derivation |\n| `rlp` | minimal RLP encoder |\n| `tx` | EIP-155 legacy signing, CREATE / CREATE2 addressing |\n| `txtypes` | AccessList (0x01), DynamicFee (0x02), Blob (0x03), SetCode (0x04), FeeDelegate (0x16) sign/encode |\n| `account` | `Account` facade (create/import, sign, keystore, ECIES) + `Extra` bitmap decode |\n| `eip191` | personal_sign digest |\n| `eip712` | typed-data digest |\n| `keystore` | Web3 Secret Storage (v3) encrypt + decrypt |\n| `ecies` | encrypt to / decrypt from a public key (interoperable with Go) |\n| `hdwallet` | BIP-39 mnemonic + BIP-32/44 derivation |\n| `abi` | minimal ABI encoder/decoder for contract calls |\n| `token` | ERC-20 / NativeCoinAdapter bindings + EIP-2612 permit + EIP-3009 |\n| `transport` | JSON-RPC client (fetch) + account Extra-flag queries |\n| `wallet` | high-level facade: auto nonce/gas/tip + blacklist guard, send/deploy/execute |\n| `governance` | read bindings (validator/minter/blacklist) |\n| `guard` | value-transfer safety guards |\n| `bytes` | hex/byte utilities |\n\nAt parity with the Go SDK (offline surface). The RPC layer is verified with a\nmock JSON-RPC client; live-node checks are covered by the Go e2e.\n\n## Develop\n\n```bash\nnpm install\nnpm test         # vitest: conformance vs shared golden vectors\nnpm run typecheck\nnpm run build\n```\n\n## Usage\n\n```ts\nimport { privKeyToAddress, signLegacy, createAddress2 } from \"@0xmhha/accounts\";\n```\n\n## License\n\nApache-2.0 OR MIT.\n","readmeFilename":"README.md","_rev":"1-2cb0297877165304dd72c35c404ccf42"}