BLS12-381 Plutus scripts fail with native Yaci Store on Scalus evaluator (missing blst JNI config)
@satran004 がすでに取り組んでいます。
2026年7月29日 から。
評価
この issue はまだ評価されていません。
説明
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).
- 主要言語
- Java
- スター
- 70
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bloxbean/yaci-devkit のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
bloxbean/yaci-devkit#87 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
bloxbean/yaci-devkit#221 · コメント 2 件 · リアクション 1 件 ·
-
npm wrapper: SIGTERM/SIGINT orphans yaci-cli and leaves a stale PID file対応中かも @satran004 が 16 日前に担当しました。 オープン
難易度 3/5 半日 初心者へのやさしさ 55/100
bloxbean/yaci-devkit#220 · 担当者 1 名 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
bloxbean/yaci-devkit#207 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
bloxbean/yaci-devkit#197 ·
bloxbean/yaci-devkit の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bloxbean/yaci-store#1445 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
Spare Permissionオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
Etar-Group/Etar-Calendar#2234 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] MCP resources-as-tools drops invocation context when listing templates対応中かも @CryoThrust が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
langchain4j/langchain4j#7320 ·
メンテナーはふだん 1 日以内に返信