-
Notifications
You must be signed in to change notification settings - Fork 314
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
Change signature of ClientOption.signTransaction
to be able to pass KeyPair
#1063
Comments
Please can i be assigned to issue @Ifropc this would be my first time contributing to this ecosystem |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedHi, my name is Bernal, and I’m a software developer with four years of experience. I’m passionate about contributing to projects and learn, and I would love the opportunity to contribute to this project How I plan on tackling this issueThe first step is to understand the project and how it works. Once I have a good understanding of it, I’ll propose a solution to the issue. After that, I’ll implement the solution and run some tests to ensure everything works correctly. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedWith over four years in blockchain and backend development, I’ve worked across different ecosystems, handling everything from smart contract design to on-chain interactions and protocol integration. I focus on building secure, scalable, and reliable blockchain applications, managing both on-chain and off-chain infrastructure. How I plan on tackling this issueStart by studying the current design of the codebase, then proceed to implementing the task coupled with research. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI have a strong background in JavaScript and TypeScript, with experience in enhancing APIs for better usability. My familiarity with blockchain applications and transaction signing will enable me to effectively implement the proposed change to ClientOption.signTransaction for improved extensibility and ease of use. How I plan on tackling this issueI would modify the signature of ClientOption.signTransaction to accept a KeyPair as an argument. Then, I’d implement the logic to use basicNodeSigner when a KeyPair is provided. I’d also update the documentation to reflect this change, ensuring clarity for users on how to use the new functionality. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedHi, please can I be assigned this issue? I am a blockchain developer and I have experience in html, css, react, JavaScript,TypeScript and solidity, python and Cairo. I'd love to contribute to this repo please. How I plan on tackling this issueTo solve this issue, I’d take the following steps: Please assign me. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedhello i am a frontend dev and blockchain developer How I plan on tackling this issueProposed Changes: |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI am a full-stack developer with experience in QA testing and languages like Python, Cairo, Solidity, React, and JavaScript. How I plan on tackling this issuei will Update ClientOption Interface |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI am a blockchain developer , this would be my first time contributing to this ecosystem How I plan on tackling this issuei will solve this issue by modifying the signtransaction function to accept a KeyPair as a parameter. If a user provides a KeyPair,i will use basicNodeSigner as the signing function, Then simplifying the signing process for users and reducing the need to reference the source code for understanding. This change will enhance usability, especially in testing scenarios. |
Thank you, will push a pr soon please |
@Ifropc I like this idea! But will the suggested implementation cause problems?
import { signTransaction } from '@stellar/freighter-api'
new Client({ signTransaction, ... }) If we change the typing of the function accepted by I understand that this makes Node-based workflows more challenging, but it is my hypothesis that these workflows are more frequent for power users, who are more comfortable looking at other examples & source code to figure out the That said, maybe there's some other way to simplify this. Maybe instead of overriding |
Hmm I'm not super familiar with TS, but if it's a enum type (i.e. can be either |
Actually, maybe you're right. I guess the only remaining question I have is which do you think would be more clear: That |
I'd argue |
basicNodeSigner
is a great helper, but currently it is hard to find and is not referenced anywhere.I propose to should change the signature of
signTransaction
to current function| KeyPair
and if user passes keypair, we simply usebasicNodeSigner
as the signer function. Currently, you need to dig into the source code to understand how it works. I like that we make it very extensible, but IMO in a lot of cases (especially testing), people just want to sign with a key pair.The text was updated successfully, but these errors were encountered: