OxL Reference

fn sealStr

seal for a str field; the generated code of an @encrypted field calls it. A failure is a panic.

Example:

oxl✓ checked in CI
use std.topic { sealStr, openStr }

fn main() io, db {
  let b = sealStr("Payments", "card", "4111")
  print(openStr("Payments", "card", b))
}
Output
4111
pub(api) fn sealStr(name: str, field: str, v: str) -> bytes

Since. 1.0.0-beta

Parameters

NameType
namestr
fieldstr
vstr

Returns

bytes

Effects

none declared (pure unless the body says otherwise)

Defined in: std/topic/topic.oxl:783

See also