Home / Docs / Standard library / Prelude
Keys
Release v0.4.0Edition 0.1 and later
A capability of the prelude, in scope in every module. Edition 0.1 and later.
una
pub capability Keys
op hmac(key_name: Text, data: Text) -> internal Hashed
fails KeyErrorComputes an HMAC-SHA-256 with a named key of the grant's key file, as internal Hashed. It accepts public for key_name and any label for data, whose label its result carries (spec/14 §3, ADR 0039).
Specification
Generated from the standard modules of una v0.4.0 (docs/std/listing.json, which is not part of the specification). The specification governs: spec/14 §1.