Writing ZKWASM Application
Params preparation
for _ in 0..20 {
params.push(unsafe {wasm_input(0)});
}
let command = unsafe {wasm_input(0)};
let command_length = ((command & 0xff00) >> 8) as usize;
unsafe { zkwasm_rust_sdk::require(command_length < 16) };
params.push(command);
for _ in 0..command_length - 1 {
params.push(unsafe {wasm_input(0)});
}Signature verification
Transaction handling
Last updated