Skip to content

Commit df62f78

Browse files
committed
docs(svm): update exact scheme spec for Lighthouse instruction support
Update scheme_exact_svm.md to reflect the implementation changes that allow optional Lighthouse program instructions from Phantom and Solflare wallets. Also fixes a numbering typo in the instruction list.
1 parent 03588ce commit df62f78

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

specs/schemes/exact/scheme_exact_svm.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,16 @@ A facilitator verifying an `exact`-scheme SVM payment MUST enforce all of the fo
106106

107107
1. Instruction layout
108108

109-
- The decompiled transaction MUST contain 3 instructions in this exact order:
109+
- The decompiled transaction MUST contain 3 to 5 instructions in this order:
110110
1. Compute Budget: Set Compute Unit Limit
111111
2. Compute Budget: Set Compute Unit Price
112-
4. SPL Token or Token-2022 TransferChecked
112+
3. SPL Token or Token-2022 TransferChecked
113+
4. (Optional) Lighthouse program instruction (Phantom wallet protection)
114+
5. (Optional) Lighthouse program instruction (Solflare wallet protection)
115+
116+
- If a 4th or 5th instruction is present, the program MUST be the Lighthouse program (`L2TExMFKdjpN9kozasaurPirfHy9P8sbXoAN1qA3S95`).
117+
- Phantom wallet injects 1 Lighthouse instruction; Solflare injects 2.
118+
- These Lighthouse instructions are wallet-injected user protection mechanisms and MUST be allowed to support these wallets.
113119

114120
2. Fee payer (facilitator) safety
115121

0 commit comments

Comments
 (0)