OxL Reference

fn openBytes

Reverses sealBytes. A failure is a panic.

Example:

oxl✓ checked in CI
use std.topic { sealBytes, openBytes }

fn main() io, db {
  let b = sealBytes("Payments", "blob", b"\x07")
  print("{openBytes("Payments", "blob", b).len()}")
}
Output
1
pub(api) fn openBytes(name: str, field: str, v: bytes) -> bytes

Since. 1.0.0-beta

Parameters

NameType
namestr
fieldstr
vbytes

Returns

bytes

Effects

none declared (pure unless the body says otherwise)

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

See also