fn sealBytes
seal for a bytes field; the generated code of an @encrypted field calls it. A failure is a panic.
Example:
use std.topic { sealBytes, openBytes }
fn main() io, db {
let b = sealBytes("Payments", "blob", b"\x01\x02")
print("{openBytes("Payments", "blob", b)}")
}Output
b"\x01\x02"
pub(api) fn sealBytes(name: str, field: str, v: bytes) -> bytesSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
name | str |
field | str |
v | bytes |
Returns
bytes
Effects
none declared (pure unless the body says otherwise)
Defined in: std/topic/topic.oxl:806