Skip to content

Cryptographic hashing (SHA-256, HMAC) #235

@aallan

Description

@aallan

Add cryptographic hashing builtins (SHA-256, HMAC).

Motivation

API authentication with most production services (AWS, Stripe, webhook signature verification) requires SHA-256 hashing and HMAC computation. Without these primitives, agents cannot authenticate with external APIs.

Proposed functions

  • sha256(@String -> @String) — SHA-256 hash, returned as hex string
  • hmac_sha256(@String, @String -> @String) — HMAC-SHA256 with key and message

Implementation notes

Host-provided functions via wasmtime imports (not implemented in pure WASM for security and performance). Pure functions from Vera's perspective.

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    C9C9 — Language designenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions