Skip to content

Conversation

@willemneal
Copy link
Contributor

@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. 🙈
@willemneal willemneal force-pushed the feat/sign_with_ledger branch from 09afd3c to 201b034 Compare May 3, 2024 19:16
@elizabethengelman elizabethengelman mentioned this pull request May 7, 2024
5 tasks
@willemneal
Copy link
Contributor 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