Catalog npm
Back to packageRELEASE DETAILS

0.1.0

npm

@0xmhha/accounts

StableNet accounts SDK (TypeScript) — clean-room, conformance-tested against the shared golden vectors.

accountseip-712ethereumhdwalletkeystoresigningstablenetwallet
Published26 Jul 2026
Direct dependencies7
Transitive dependenciesNot calculated

README

Current package documentation

@0xmhha/accounts (TypeScript)

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.json are synced from the Go repo (conformance/vectors/core.json) — update them together so both SDKs stay conformant.

  • Permissive deps only: @noble/hashes, @noble/curves, @noble/ciphers, @scure/bip39, @scure/bip32 (MIT).
  • No go-stablenet (LGPL/GPL) code.

Cycle-1 surface

ModuleContents
cryptoKeccak-256, secp256k1 sign/recover, address derivation
rlpminimal RLP encoder
txEIP-155 legacy signing, CREATE / CREATE2 addressing
txtypesAccessList (0x01), DynamicFee (0x02), Blob (0x03), SetCode (0x04), FeeDelegate (0x16) sign/encode
accountAccount facade (create/import, sign, keystore, ECIES) + Extra bitmap decode
eip191personal_sign digest
eip712typed-data digest
keystoreWeb3 Secret Storage (v3) encrypt + decrypt
eciesencrypt to / decrypt from a public key (interoperable with Go)
hdwalletBIP-39 mnemonic + BIP-32/44 derivation
abiminimal ABI encoder/decoder for contract calls
tokenERC-20 / NativeCoinAdapter bindings + EIP-2612 permit + EIP-3009
transportJSON-RPC client (fetch) + account Extra-flag queries
wallethigh-level facade: auto nonce/gas/tip + blacklist guard, send/deploy/execute
governanceread bindings (validator/minter/blacklist)
guardvalue-transfer safety guards
byteshex/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.

Develop

npm install
npm test         # vitest: conformance vs shared golden vectors
npm run typecheck
npm run build

Usage

import { privKeyToAddress, signLegacy, createAddress2 } from "@0xmhha/accounts";

License

Apache-2.0 OR MIT.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@noble/ciphers
Environment
{
  "local_name": "@noble/ciphers",
  "alias": false,
  "peer_metadata": null
}
^1.0.0runtime
@noble/curves
Environment
{
  "local_name": "@noble/curves",
  "alias": false,
  "peer_metadata": null
}
1.4.0runtime
@noble/hashes
Environment
{
  "local_name": "@noble/hashes",
  "alias": false,
  "peer_metadata": null
}
1.4.0runtime
@scure/bip32
Environment
{
  "local_name": "@scure/bip32",
  "alias": false,
  "peer_metadata": null
}
^1.4.0runtime
@scure/bip39
Environment
{
  "local_name": "@scure/bip39",
  "alias": false,
  "peer_metadata": null
}
^1.3.0runtime
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
5.4.5development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
1.6.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "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="
    }
  ]
}

Repository

PENDING
0xmhha/accounts-ts

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:08 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:bf83a2c6716d21049b4a66cb1a20e9868b5d73c5870a05f2d4769ec94eb4e02d

Other collected versions

View all collected versions →