BLS12-381 Plutus scripts fail with native Yaci Store on Scalus evaluator (missing blst JNI config)
@satran004 đang làm issue này rồi.
Từ ngày 29/7/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Summary
Yaci DevKit runs the native Yaci Store binary by default (yaci.store.mode=native in both applications/cli/config/application.properties and applications/cli/docker/application.properties), and the default transaction evaluator is scalus.
Scalus reaches the blst native library for BLS12-381 primitives, and the GraalVM native-image build of Yaci Store has no JNI/resource configuration for it. So under store.submit.tx-evaluator-mode=scalus, Plutus scripts that use BLS12-381 builtins fail to evaluate in the native Store binary that DevKit ships.
All other Plutus scripts are unaffected — the failure is confined to the code paths that touch the blst JNI binding.
Upstream root cause: bloxbean/yaci-store#1045 (to be fixed on release/2.0.1_devkit).
This issue tracks the DevKit-side impact and follow-up.
Why DevKit is affected
DevKit picks the evaluator at devnet start in YaciStoreService.resolveTxEvaluatorMode(): it uses ogmios when Ogmios is enabled and running, and otherwise falls back to scalus. The mode is passed to the Store both as STORE_SUBMIT_TX_EVALUATOR_MODE and via the generated store.submit.tx-evaluator-mode.
So whether a BLS12-381 contract can be evaluated depends on which evaluator is active:
| Distribution / platform | Ogmios available | BLS12-381 scripts | Other Plutus scripts |
|---|---|---|---|
Docker linux/amd64 |
✅ | ✅ with Ogmios, ❌ on Scalus | ✅ |
Docker linux/arm64 |
✅ (native binaries) | ✅ with Ogmios, ❌ on Scalus | ✅ |
| Zip on Linux (x86_64 / arm64) | ✅ when enabled | ✅ with Ogmios, ❌ on Scalus | ✅ |
| Zip on macOS | ❌ no usable upstream build | ❌ cannot be evaluated at all | ✅ |
The macOS zip row is the notable one. Ogmios publishes no self-contained macOS build — the aarch64-macos artifact is dynamically linked against Nix store paths and fails with dyld: Library not loaded: /nix/store/...libffi.8.dylib — so on a native macOS install Scalus is the only available evaluator, and BLS12-381 contracts cannot be evaluated there until the upstream fix lands.
Follow-up in DevKit
- Track bloxbean/yaci-store#1045 and bump
yaci.store.tag/yaci.store.versioninapplications/cli/config/download.propertiesonce the fix lands onrelease/2.0.1_devkit. - Rebuild the bundled native Store binaries (
applications/store-build/Earthfile,STORE_NATIVE_BRANCH) after the upstream fix. - Document the limitation: with the Scalus evaluator, BLS12-381 contracts do not evaluate on the native Store binary. Recommend enabling Ogmios (or the Docker distribution on macOS) for those contracts in the meantime.
- Add an e2e check that submits a Plutus transaction using BLS12-381 builtins and asserts successful script cost evaluation, run against both evaluator modes and against the native Store binary — the build succeeds and only fails at runtime on a path ordinary tests never reach, which is why this went unnoticed.
Related work
This surfaced while implementing ADR-0016 (upgrade to CardanoSolutions Ogmios v7.0.0 / Kupo v2.12, restore native arm64, and make Ogmios the default tx evaluator). Enabling Ogmios by default in the Docker distribution incidentally makes BLS12-381 contract evaluation work out of the box there, since the ogmios evaluator does not go through blst.
Notes
The missing configuration has been verified as absent across main, release/2.0.x and release/2.0.1_devkit in yaci-store, and across the full history of all refs (details in bloxbean/yaci-store#1045).
- Ngôn ngữ chính
- Java
- Star
- 70
- Fork
- 21
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bloxbean/yaci-devkit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
bloxbean/yaci-devkit#87 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
bloxbean/yaci-devkit#221 · 2 bình luận · 1 reaction ·
-
npm wrapper: SIGTERM/SIGINT orphans yaci-cli and leaves a stale PID fileCó thể đã có người làm @satran004 đã nhận 17 ngày trước. Đang mở
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 55/100
bloxbean/yaci-devkit#220 · 1 người được giao ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
bloxbean/yaci-devkit#207 ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
bloxbean/yaci-devkit#197 ·
Tất cả issue của bloxbean/yaci-devkit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bloxbean/yaci-store#1445 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
图片灯箱过长的话底部carousel滑动没有惯性Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
Spare PermissionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
Etar-Group/Etar-Calendar#2234 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] MCP resources-as-tools drops invocation context when listing templatesCó thể đã có người làm @CryoThrust đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
langchain4j/langchain4j#7320 ·
Maintainer thường phản hồi trong vòng 1 ngày