Hash bytes, sign and verify Ed25519 and JWTs, encrypt and decrypt Convex ECIES, and generate or derive secret-backed BIP39 keys
| Name: | crypto |
| Class: | covia.adapter.CryptoAdapter |
This adapter provides 16 MCP tool(s) for AI agent integration:
| Tool Name | Description |
|---|---|
| crypto_add-key | Move an Ed25519 seed or a BIP39 phrase from one of your secrets into your keyring, where it can be used under your authority but never read. The secret stays where it is; delete it if the keyring copy is the only one you want. |
| crypto_remove-key | Remove a held key or phrase. The venue signs nothing new with it; tokens and signatures it already made stay valid. |
| crypto_jwt-verify | Verify an EdDSA JWT using an explicit trusted accountKey, optional expected issuer/audience, and exp/nbf when present. Returns valid:false and a reason on signature, algorithm or claim rejection, without releasing claims. Malformed input fails. This is JWT validation, not venue authentication or UCAN authorization. |
| crypto_encrypt | Encrypt bytes for an Ed25519 AccountKey using Convex ECIES: RFC 9180 HPKE Base, X25519/HKDF-SHA256/AES-128-GCM. Fresh randomness per call; authenticates ciphertext integrity, not sender identity. |
| crypto_hash | Hash exact bytes with SHA-256, SHA-512, SHA3-256 (default), or Keccak-256. SHA3-256 differs from Ethereum Keccak-256. This is NOT a CAD3 value hash. |
| crypto_derive-key | Validate a secret-backed English BIP39 mnemonic, derive via PBKDF2-HMAC-SHA512 then hardened SLIP-0010, and store the 32-byte Ed25519 seed. Default path matches Convex/GetMine venue identity. GetMine install DID uses m/44/864/1/0/0. GetMine uses the empty passphrase. |
| crypto_decrypt | Decrypt a Convex ECIES blob using a secret-backed Ed25519 seed. Returns a native plaintext blob by default. Supply name to store plaintext securely (hex by default) and return only a reference. Without name, plaintext may be recorded in jobs or agent history. Wrong key or tampering fails authentication. |
| crypto_public-key | Resolve a secret-backed Ed25519 seed and return only its public AccountKey and DID. |
| crypto_validate-mnemonic | Check an English BIP39 phrase in the secret store: standard word count, word list and checksum. Returns only validity; never echoes a word. |
| crypto_jwt-sign | Sign JWT claims with a secret-backed Ed25519 seed using Convex's EdDSA format. Optional name stores the token as a secret without returning it. This signs caller-supplied claims; it does not grant venue authority or issue UCAN capabilities. |
| crypto_list-keys | List the public keys and phrase IDs a keyring holds, with their labels and when each was added. Private material is never listed. |
| crypto_jwt-decode | Inspect a compact JWT without verifying its signature, algorithm, claims or authority. Always returns verified:false. Never use this result as evidence of identity or access. Use jwt-verify for trusted-key checks. |
| crypto_sign | Sign exact bytes with a secret-backed Ed25519 key. No implicit hash or CAD3 conversion. Returns a detached 64-byte signature. |
| crypto_generate-mnemonic | Generate an English BIP39 phrase directly into the encrypted secret store. Defaults to 12 words (128 bits entropy), as GetMine; 24 words gives 256 bits. Returns only a reference. This operation does not display a human recovery backup. |
| crypto_generate-key | Generate a secure random Ed25519 seed directly into the encrypted secret store. Returns its reference, public AccountKey and DID. Compatible with Convex signing and ECIES. |
| crypto_verify | Verify a detached Ed25519 signature over exact bytes. A well-formed signature mismatch returns valid:false; malformed encodings or lengths fail. |