Proofs & Hooks
Leverage cryptographic proofs and the forthcoming XRPL Hooks amendment to automate EscrowFinish
or enforce freezes based on on-chain or oracle-delivered evidence.
Proof Types
- Hash Lock: Vendor supplies a SHA-256 preimage matching
Condition
. - Oracle Callback: External service attests via signed transaction.
- Time-Lock: Funds auto-release after
FinishAfter
.
Automated vs Emergency
- Automated Release: Hook or watcher triggers
EscrowFinish
on valid proof. - Freeze AI: Hook rejects undesirable finishes; user can review.
Example Hook Template
(module
(import "ledger" "get_condition" (func $get_condition (result i32)))
(import "crypto" "sha256" (func $sha256 (param i32 i32) (result i32)))
;; WASM logic to compare proof with condition...
)
Learn More
XRPL Hooks proposal: Hooks Specification.