Skip to content

Commit fa47c43

Browse files
authored
feat(CHAIN-2651): add warning for base -> solana relaying (#776)
* add warning for base -> solana relaying * adjust warning location
1 parent 4a9d2fc commit fa47c43

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/base-chain/quickstart/base-solana-bridge.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,16 @@ const relayIx = getRelayMessageInstruction({ message: messagePda });
195195
await buildAndSendTransaction(SOLANA_RPC_URL, [proveIx, relayIx], payer);
196196
```
197197

198+
<Warning>
199+
If you operate a relayer that signs and submits Solana transactions for users in the **Base → Solana**
200+
direction, do **not** sign transactions that require your relayer pubkey as a signer.
201+
202+
A malicious user can encode a transaction that includes your relayer pubkey as a required signer; if
203+
you sign and submit it, you may unintentionally authorize arbitrary instructions (including ones
204+
that can steal relayer funds). As a baseline mitigation, ignore any transaction that specifies your
205+
pubkey as a signer.
206+
</Warning>
207+
198208
## Utilities
199209

200210
The repository includes utilities for converting between Solana and Base address formats,

0 commit comments

Comments
 (0)