Skip to main content

Module syscalls

Module syscalls 

Source
Expand description

Minimal syscall shims exposed through Hopper Runtime.

Hopper-owned crates use this module instead of depending on external SDK syscall paths.

Functions§

sol_alt_bn128_compression⚠
Run a BN254 / alt_bn128 compression operation.
sol_alt_bn128_group_op⚠
Run a BN254 / alt_bn128 group operation.
sol_big_mod_exp⚠
Run big integer modular exponentiation.
sol_blake3⚠
Compute BLAKE3 over a slice-of-slices payload.
sol_curve_group_op⚠
Run a group operation on a runtime-supported curve.
sol_curve_multiscalar_mul⚠
Run variable-length multiscalar multiplication on a runtime-supported curve.
sol_curve_validate_point⚠
Validate whether a point lies on a runtime-supported curve.
sol_get_processed_sibling_instruction⚠
Read a previously processed sibling instruction from the current transaction.
sol_get_return_data⚠
Read CPI return data set by the most recent CPI.
sol_get_stack_height
Return the current Solana instruction stack height.
sol_keccak256⚠
Compute Keccak-256 over a slice-of-slices payload.
sol_log_data⚠
Emit a sol_log_data event payload.
sol_memcmp_⚠
Compare two byte ranges and write a negative, zero, or positive result.
sol_memcpy_⚠
Copy n non-overlapping bytes from src to dst.
sol_memmove_⚠
Copy n bytes from src to dst, allowing overlap.
sol_memset_⚠
Fill n bytes at dst with byte.
sol_poseidon⚠
Compute a Poseidon hash using Solana’s runtime syscall.
sol_remaining_compute_units
Return the remaining compute units reported by the Solana runtime.
sol_secp256k1_recover⚠
Recover a secp256k1 public key from a 32-byte message hash and 64-byte compact signature.
sol_set_return_data⚠
Set CPI return data for the current instruction.
sol_sha256⚠
Compute SHA-256 over a slice-of-slices payload.