Skip to main content

create_host_functions

Function create_host_functions 

Source
pub fn create_host_functions() -> Vec<Function>
Expand description

Create host functions required by the 1Password WASM SDK.

These match the imports expected by the 1Password core WASM module:

  • random_fill_imported (op-extism-core): Generates cryptographically secure random bytes
  • unix_time_milliseconds_imported (op-now): Returns current Unix time in milliseconds
  • unix_time_milliseconds_imported (zxcvbn): Same as above, for password strength checking
  • utc_offset_seconds (op-time): Returns local timezone offset in seconds