# Crypto (env)

> Planned NeuroWASM crypto host functions — SHA3-256, ML-DSA-65 signature verification and address validation.

Source: https://docs.nro.world/neurowasm/crypto

Phase A.1 — PQ-first. No `ecrecover` as primary (optional later for bridges).

## `sha3_256` <Badge type="info" text="planned" />

```text
sha3_256(msg_ptr, msg_len, out_ptr) → i32
```

Canonical NeuroChain hash. Writes 32 bytes. Returns `32` or `-1`.

## `verify_mldsa65` <Badge type="info" text="planned" />

```text
verify_mldsa65(msg…, sig…, pk…) → i32
```

`1` valid / `0` invalid / `-1` error. For session keys / AA inside contracts.

## `addr_validate` <Badge type="info" text="planned" />

```text
addr_validate(addr_ptr, addr_len) → i32
```

Validate `neuro:name.type` format.
