OxL Reference

method secret.reveal

The wrapped value (a fresh copy). The analyzer follows it so that it does not leak into logs (§13.3).

Example:

oxl✓ checked in CI
fn main() io {
  let token = secret.of("abc")
  print("{token.reveal() == "abc"}")
}
Output
true
pub(api) fn reveal() -> T

Complexity. O(1) (O(n) for `secret<str>`).

Since. 1.0.0-beta

Returns

T

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/types.oxl:696

See also