You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When transaction.feePayer is set with an address that is not managed by Phantom, Phantom appears to sign the transaction as the fee payer, causing a mismatch between transaction.signatures[0].publicKeytransaction.signatures[0].signature. Where the first signature in this array is always the fee payer (from my understanding).
Example
No response
Steps to Reproduce
Create a basic tx with a transfer and set the tx.feePayer to an account other than the one managed by Phantom
Pass the transaction to Phantom for signing
Inspect tx.signatures[0].publicKey, it will equal our original tx.feePayer
Inspect tx.signatures[0].signature, it will exist and must have been signed by phantom with different pubkey
Expected
Phantom should not assume it's signing as fee payer if transaction.feePayer is set with a different pubkey to the one it's signing with.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
When
transaction.feePayer
is set with an address that is not managed by Phantom, Phantom appears to sign the transaction as the fee payer, causing a mismatch betweentransaction.signatures[0].publicKey
transaction.signatures[0].signature
. Where the first signature in this array is always the fee payer (from my understanding).Example
No response
Steps to Reproduce
tx.feePayer
to an account other than the one managed by Phantomtx.signatures[0].publicKey
, it will equal our originaltx.feePayer
tx.signatures[0].signature
, it will exist and must have been signed by phantom with different pubkeyExpected
Phantom should not assume it's signing as fee payer if
transaction.feePayer
is set with a different pubkey to the one it's signing with.Context
This relates multi-sig and trying to find a solution for https://github.com/orgs/phantom/discussions/122
Phantom Version
23.17.0
Is there an existing discussion for this?
Beta Was this translation helpful? Give feedback.
All reactions