Skip to content

Conversation

@bleepbloopsify
Copy link
Contributor

@bleepbloopsify bleepbloopsify commented Oct 27, 2025

e2e type generation for native bindings.

also includes: native package generation based on platform an architecture - we should publish these packages in CI, probably.

imagined flow:
actions (arm darwin, arm linux, intel darwin, intel linux) -> each creates an individual npm package and publishes it.
an engineer locally runs npm install --save-optional @o1labs/o1js-native-platform-arch to add it to optional deps
an engineer makes the bump in o1js so the native packages all line up properly with their releases.

this will probably be part of the release section.

// Header section
// To edit this section, look for 
// ./src/lib/crypto/kimchi_bindings/js/native/header-d.ts
// This file gets auto-included in the generated plonk-napi types to supplement
// external pointer types.

type WasmPastaFpPlonkIndex = {};

// Header section end
export declare class ExternalObject<T> {
  readonly '': {
    readonly '': unique symbol
    [K: symbol]: T
  }
}
export declare function camlPastaFpPoseidonBlockCipher(state: Uint8Array): Uint8Array

export declare function camlPastaFqPoseidonBlockCipher(state: Uint8Array): Uint8Array

export declare function proverIndexFromBytes(bytes: Uint8Array): ExternalObject<WasmPastaFpPlonkIndex>

export declare function proverIndexToBytes(index: ExternalObject<WasmPastaFpPlonkIndex>): Uint8Array

export declare function proverToJson(proverIndex: ExternalObject<WasmPastaFpPlonkIndex>): string

Looks like this post-generation

@bleepbloopsify bleepbloopsify requested review from a team as code owners October 27, 2025 14:44
@bleepbloopsify bleepbloopsify requested review from querolita and ymekuria and removed request for a team October 27, 2025 14:44
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