npm.io
0.7.0 • Published 4d ago

@avokwalletjs/core

Licence
MIT
Version
0.7.0
Deps
3
Size
136 kB
Vulns
0
Weekly
26
DeprecatedThis package is deprecated

@avokwalletjs/core

Local primitives for Avok wallets. Runs in the browser. Handles WebAuthn passkey creation, PRF-derived encryption of the wallet's private key, typed intent signing, and EIP-7702 delegation checks.

Most apps do not import this directly. Use @avokwalletjs/react instead. The hooks in @avokwalletjs/react wrap everything here.

npm install @avokwalletjs/core

What you get

  • WebAuthnPasskeyAdapter: create and authenticate WebAuthn passkeys with the PRF extension.
  • Wallet creation, key derivation, and encrypted backup blobs.
  • IntentInput, SignedIntent, and helpers to sign and validate them.
  • Delegation checks against the deployed EIP-7702 implementation.
  • AvokSignIn helpers for SIWE-style sign-in flows.

Security note

@avokwalletjs/core never touches the network and never logs key material. The private key lives in memory only during a signing call and is wiped immediately after. PRF output is treated the same way. Anything that crosses a network boundary is a signed intent, never raw key material.

Docs

See the main repo for architecture and threat model.

License

MIT.