Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment revealOnlyBy

std/secret/block::revealOnlyBy


Generics

◻ T (any)

Parameters

↳ var elements: Vec<string>

Inputs

⇥ secret: Block<Secret<T>>

Outputs

↦ narrowed: Block<Secret<T>>


Limits the elements that may reveal a secret received at runtime to the ones in elements, given as identifiers such as std/secret::reveal.

Same as std/secret::|reveal_only_by.