Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jsonrpc] - Mark Transaction Builder RPC as unsafe #9226

Merged
merged 3 commits into from
Mar 14, 2023

Conversation

patrickkuo
Copy link
Contributor

@patrickkuo patrickkuo commented Mar 13, 2023

Description

  • Mark TransactionBuilder RPC apis as unsafe with an unsafe prefix.
  • Also removed unused delegation parameter.

@vercel
Copy link

vercel bot commented Mar 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments
Name Status Preview Comments Updated
explorer ⬜️ Ignored (Inspect) Mar 14, 2023 at 1:58PM (UTC)
explorer-storybook ⬜️ Ignored (Inspect) Mar 14, 2023 at 1:58PM (UTC)
wallet-adapter ⬜️ Ignored (Inspect) Mar 14, 2023 at 1:58PM (UTC)

@patrickkuo patrickkuo force-pushed the pat/mark_transaction_builder_unsafe branch from bd623bc to 3401bcd Compare March 14, 2023 01:11
@patrickkuo patrickkuo force-pushed the pat/mark_transaction_builder_unsafe branch from 3401bcd to 85a582e Compare March 14, 2023 13:57
Copy link
Contributor

@gegaowp gegaowp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change itself looks good!
I missed some context though, why txn builder is unsafe?

@patrickkuo
Copy link
Contributor Author

The change itself looks good!
I missed some context though, why txn builder is unsafe?

because this is building the transaction remotely, if a app is connecting to a untrusted full node and use the transaction builder APIs, the malicious full node can potentially manipulate the transaction bytes.

@patrickkuo patrickkuo merged commit 28526f6 into main Mar 14, 2023
@patrickkuo patrickkuo deleted the pat/mark_transaction_builder_unsafe branch March 14, 2023 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants