Module mnemonic

Module mnemonic 

Source

Structsยง

RevealMnemonicForm
Form data for revealing the mnemonic

Functionsยง

iframe_security_headers ๐Ÿ”’
Security headers for iframe responses
iframe_styles ๐Ÿ”’
Common styles for iframe content
mnemonic_iframe_handler
Handler for the initial iframe content (GET request). Returns a placeholder prompting the user to enter their password.
mnemonic_reveal_handler
Handler for revealing the mnemonic (POST request with password). Verifies the password and returns the mnemonic if valid.
render
Renders the mnemonic card with password-protected reveal. The mnemonic is only displayed after re-authentication, and the form submits directly to a sandboxed iframe so the mnemonic never passes through parent page JavaScript.
render_iframe_error ๐Ÿ”’
Renders the iframe content with an error message
render_iframe_initial ๐Ÿ”’
Renders the initial iframe content (placeholder prompting for password)
render_iframe_revealed ๐Ÿ”’
Renders the iframe content with the revealed mnemonic