hop-actions 2.0
hop-actions defines the checked action contract for HOP channels. An action
encodes a polynomial transform g(C), a policy nonce, and optional projection
mask metadata.
Version 2.0 provides canonical field-value validation, dimension-checked masks,
checked g(C) evaluation and application, and domain-separated, length-framed
SHA-256 action identifiers. The framing prevents structural collisions between
polynomial and optional-mask fields.
use ;
use ;
let companion = try_from_coeffs?;
let action = try_new?;
let state = vec!;
let next = apply_action?;
assert_eq!;
# Ok::
Actions are deterministic algebraic transforms. They are not signatures, encryption, authorization tokens, or randomness.
See the workspace security policy and license.