Adapter Details: crypto

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

MCP Tools

This adapter provides 16 MCP tool(s) for AI agent integration:

Tool NameDescription
crypto_add-keyMove 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-keyRemove a held key or phrase. The venue signs nothing new with it; tokens and signatures it already made stay valid.
crypto_jwt-verifyVerify 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_encryptEncrypt 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_hashHash 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-keyValidate 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_decryptDecrypt 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-keyResolve a secret-backed Ed25519 seed and return only its public AccountKey and DID.
crypto_validate-mnemonicCheck an English BIP39 phrase in the secret store: standard word count, word list and checksum. Returns only validity; never echoes a word.
crypto_jwt-signSign 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-keysList the public keys and phrase IDs a keyring holds, with their labels and when each was added. Private material is never listed.
crypto_jwt-decodeInspect 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_signSign exact bytes with a secret-backed Ed25519 key. No implicit hash or CAD3 conversion. Returns a detached 64-byte signature.
crypto_generate-mnemonicGenerate 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-keyGenerate 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_verifyVerify a detached Ed25519 signature over exact bytes. A well-formed signature mismatch returns valid:false; malformed encodings or lengths fail.

Navigation

Back to all adapters

Back to index