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

feat: use ledger in txn sign #1311

Closed
wants to merge 85 commits into from

Conversation

willemneal
Copy link
Member

@willemneal willemneal commented May 2, 2024

This depends on #1283 and #1278.

There is a lot of cleaning up to do and move some work into the ledger PR, but this currently works!

cargo r -- contract install --build-only --wasm ./target/wasm32-unknown-unknown/test-wasms/test_hello_world.wasm | 
cargo r -- txn simulate | 
cargo r -- txn sign --signer ledger | 
cargo r -- txn send

so that is can use the ledger-transport::Exchange trait for the
transport which is async

using this trait allows us to use the Zemu transport which can connect
to the Speculos emulator
i needed to look at the js implementation again (hw-app-str) - they have
a note that says to pass the `signatureBase` into the `signTransaction`
fn. I had forgotten about this. The `signatureBase` fn is defined in
js-stellar-base and is the value that should be sent to the network. it
is TransactionSignaturePayload.toXDR(). Which is also in the signer
train and i didn't notice it. 🙈
@elizabethengelman elizabethengelman mentioned this pull request May 7, 2024
5 tasks
@willemneal
Copy link
Member Author

close in favor of: #1353

@willemneal willemneal closed this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants