Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More friendly host apis #224

Merged
merged 63 commits into from
Jan 5, 2024
Merged

More friendly host apis #224

merged 63 commits into from
Jan 5, 2024

Conversation

xgaozoyoe
Copy link
Contributor

No description provided.

&output_dir,
),
Some(("setup", _)) => match host_mode {
HostMode::DEFAULT => exec_setup::<ExecutionArg, DefaultHostEnvBuilder>(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use StandardEnvBuilder as default host? And I doubt that users can differentiate them by name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better name might be standard --> default, default --> minimize, and then I can add a customize tag for those who would like to load env via a json file. But I think it can be done in a separate PR later.

circuit.exec_create_proof(
output_dir,
param_dir,
PKEY_CACHE.lock().as_mut().unwrap(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PKEY_CACHE,K_PARAMS_CACHE should not expose to zkWasm?

crates/cli/src/exec.rs Outdated Show resolved Hide resolved
crates/host/src/lib.rs Outdated Show resolved Hide resolved
@xgaozoyoe xgaozoyoe merged commit 0c03b5b into main Jan 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants