0xMiden / 0xMiden/web-sdk

React SDK useConsume uses proxy signer, fails recipient verification in custom scripts

未關閉
#108 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
1
分支
21
平均合併
12 小時 14 分鐘
30 天內合併 PR
41

描述

## Context

Reported by multiple builders during Miden Day (agentic template feedback).

`useConsume` from the React SDK uses a proxy signer account created by `MidenFiSignerProvider`, not the real wallet account. Any note script that verifies `active_account::get_id()` fails because the consuming account ID doesn't match the intended recipient.

The React SDK (WebClient) can execute custom note scripts but uses the wrong account. The wallet adapter has the right account but can't execute custom scripts. These two worlds are disconnected.

貢獻指南

開啟貢獻指南

研究方向

Look at the React SDK's `useConsume` hook and the `MidenFiSignerProvider` to understand the proxy signer flow. Examine how note scripts verify `active_account::get_id()` and compare with the wallet adapter's account handling. The fix likely involves aligning the consuming account ID between the SDK and wallet adapter for custom script execution.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
react, typescript
領域
backend-api-design, security
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。