基於零知識證明之臺灣區塊鏈資產數位密封遺囑

ZkWill: Taiwan's Digital Sealed Will for On-Chain Assets with Zero-Knowledge Proofs

檔案

日期

2025

類型

語言

英文

摘要

在台灣,遺囑的效力受《民法》規範,並採認多種形式,例如公證遺囑或密封遺囑。密封遺囑雖能有效保障隱私,但其內容在立遺囑人過世前並不會被審核,這可能導致與鏈上資產相關的遺囑無法執行。為了減少這類風險,可以依賴受信任的第三方(如公證人或機構)進行人工審核,但這同時帶來遺囑內容外洩或錢包私鑰遭洩漏的風險——尤其對於高價值的鏈上資產而言更為嚴重。
為解決上述問題,本文提出一個基於區塊鏈與零知識證明(Zero-Knowledge Proof, ZKP)的遺囑系統。該系統利用 Permit2 技術,依據立遺囑人鏈下簽署的授權,限制遺囑合約的資產轉移權限,確保即使遺囑內容外洩,資產安全仍可維持。遺囑經立遺囑人簽署後,將以 AES-256 CTR 模式加密並上傳至 IPFS,並將其內容識別碼(CID)不可變地記錄於鏈上。CID 上傳至區塊鏈後會透過 ZKP 確保遺囑之有效性,並要求提供見證人對 CID 的數位簽章,以滿足民法對於密封遺囑公證程序之要求。此外,系統機制亦能確保遺囑僅於立遺囑人死亡經正式驗證後方可生效。
我們在測試網上的實作顯示,本系統能同時保障遺囑的完整性、隱私性、可執行性及私鑰安全。更重要的是,該架構與現行的密封遺囑程序相容,成功在傳統法律制度與區塊鏈創新之間建立橋樑。
In Taiwan, the validity of wills is governed by the Civil Code, which recognizes multiple forms such as notarial wills and sealed wills. While sealed wills effectively protect privacy, their contents are not reviewed before the testator’s death, which may result in non-executable wills concerning on-chain assets. To mitigate this risk, one may rely on trusted third parties (such as notaries or institutions) for manual audits; however, this introduces the danger of exposing the will’s contents or leaking wallet private keys—particularly critical for high-value on-chain assets.
To address these challenges, this paper proposes a blockchain-based will system leveraging Zero-Knowledge Proofs (ZKPs). The system employs Permit2 to restrict the asset transfer authority of the will contract based on the testator’s off-chain authorization, ensuring asset security even if the will’s contents are exposed. After being signed by the testator, the will is encrypted using AES-256 in CTR mode and uploaded to IPFS, with its Content Identifier (CID) immutably recorded on-chain. Once the CID is uploaded, a ZKP is used to verify the validity of the will, and witnesses are required to digitally sign the CID to fulfill the notarization requirements stipulated for sealed wills under the Civil Code. Furthermore, the system ensures that the will only becomes effective after the testator’s death has been formally verified.
Our testnet implementation demonstrates that the proposed system simultaneously guarantees the integrity, privacy, executability, and private key security of the will. More importantly, the framework remains compatible with existing sealed will procedures, successfully bridging the gap between traditional legal systems and blockchain innovation.
顯示完整詮釋資料 統計資料

引用此條目

Chen, C.-J. (2025). ZkWill: Taiwan's Digital Sealed Will for On-Chain Assets with Zero-Knowledge Proofs. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/87782

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/87782