Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/ci3_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ function handle_benchmarks {

function handle_chonk_input_update {
local github_repository="$1"
if [ "${CHONK_INPUT_UPDATE_REQUESTED:-0}" -eq 0 ]; then
return 1
fi
echo_header "Chonk Input Update"
export GITHUB_REPOSITORY="${GITHUB_REPOSITORY:-$github_repository}"
./.github/ci3.sh chonk-input-update
Expand All @@ -70,7 +67,8 @@ function main {
echo_header "CI3 Post-Actions"
# Get repository from git remote
local github_repository=$(git remote get-url origin | sed -E 's|.*github\.com[/:]([^/]+/[^/]+)(\.git)?$|\1|')
if handle_chonk_input_update "${github_repository}"; then
if [ "${CHONK_INPUT_UPDATE_REQUESTED:-0}" -eq 1 ]; then
handle_chonk_input_update "${github_repository}"
echo_header "Post-Actions Complete"
return
fi
Expand Down
2 changes: 1 addition & 1 deletion barretenberg/ts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Miscellaneous

* Lower the default bb.js CRS download size from `2 ** 20` to `2 ** 18`. Callers that need a larger CRS can still pass an explicit SRS size.
* Lower the default bb.js CRS download size from `2 ** 20` to `2 ** 19` for non-iOS browsers. iOS remains at `2 ** 18`. Callers that need a larger CRS can still pass an explicit SRS size.

## [0.77.0](https://github.com/AztecProtocol/aztec-packages/compare/barretenberg.js-v0.76.4...barretenberg.js-v0.77.0) (2025-02-14)

Expand Down
6 changes: 3 additions & 3 deletions barretenberg/ts/src/barretenberg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class Barretenberg extends AsyncApi {
// Explicit backend required - no fallback
const backend = await createAsyncBackend(options.backend, options, logger);
if (!options.skipSrsInit && (options.backend === BackendType.Wasm || options.backend === BackendType.WasmWorker)) {
await backend.initSRSChonk();
await backend.initSRSChonk(options.srsSize);
}
return backend;
}
Expand All @@ -66,15 +66,15 @@ export class Barretenberg extends AsyncApi {
logger(`Unix socket unavailable (${err.message}), falling back to WASM`);
const backend = await createAsyncBackend(BackendType.Wasm, options, logger);
if (!options.skipSrsInit) {
await backend.initSRSChonk();
await backend.initSRSChonk(options.srsSize);
}
return backend;
}
} else {
logger(`In browser, using WASM over worker backend.`);
const backend = await createAsyncBackend(BackendType.WasmWorker, options, logger);
if (!options.skipSrsInit) {
await backend.initSRSChonk();
await backend.initSRSChonk(options.srsSize);
}
return backend;
}
Expand Down
3 changes: 3 additions & 0 deletions barretenberg/ts/src/bb_backends/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export type BackendOptions = {
/** @description Path to download CRS files */
crsPath?: string;

/** @description Number of G1 points to download when initializing the CRS/SRS for WASM backends */
srsSize?: number;

/** @description Path to download WASM files */
wasmPath?: string;

Expand Down
Loading