Skip to content

Conversation

@Trivo25
Copy link
Member

@Trivo25 Trivo25 commented Nov 10, 2025


#[napi(js_name = "pasta_fp_plonk_index_max_degree")]
pub fn caml_pasta_fp_plonk_index_max_degree(index: &External<NapiPastaFpPlonkIndex>) -> i32 {
pub fn caml_pasta_fp_plonk_index_max_degree(index: &External<WasmPastaFpPlonkIndex>) -> i32 {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't the js_name be caml_pasta_fp_plonk_index_max_degree instead of just pasta_fp_plonk_index_max_degree? Same for the rest

srs: Vec<u8>,
}

impl NapiPastaFpPlonkIndex {
Copy link
Member

Choose a reason for hiding this comment

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

Mmmm doesn't #[napi(js_name = "WasmPastaFpPlonkIndex")] work here? I was trying to rename at the napi level these functions so they are prefixed Napi inside plonk-napi, but then read as Wasm- from outside.

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.

3 participants