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 toBytes

std/secret/block::toBytes


Parameters

↳ var name: string

Inputs

⇥ secret: Block<Secret<string>>

Outputs

↦ bytes: Block<Secret<Vec<byte>>>


Secret made of the UTF-8 bytes of a string secret, computed when revealed.

Same as std/secret::|to_bytes, for a secret received at runtime.