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

Implement transaction signing #96

Merged
merged 2 commits into from Feb 10, 2022
Merged

Implement transaction signing #96

merged 2 commits into from Feb 10, 2022

Conversation

digorithm
Copy link
Member

@digorithm digorithm commented Feb 10, 2022

Adds transaction signing to the wallet API:

 let wallet = LocalWallet::new_from_private_key(secret).unwrap();

let input_coin = Input::coin(
   // ...
);

let output_coin = Output::coin(
 // ..
);

let tx = Transaction::script(
   // ..
);

let signature = wallet.sign_transaction(&tx).await.unwrap();

Closes #69.

@digorithm digorithm added the enhancement New feature or request label Feb 10, 2022
@digorithm digorithm self-assigned this Feb 10, 2022
@digorithm digorithm changed the title Impl transaction signing Implement transaction signing Feb 10, 2022
iqdecay
iqdecay previously approved these changes Feb 10, 2022
Copy link
Contributor

@iqdecay iqdecay left a comment

Choose a reason for hiding this comment

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

LGTM

luizstacio
luizstacio previously approved these changes Feb 10, 2022
@digorithm digorithm merged commit f6d4cc0 into master Feb 10, 2022
@digorithm digorithm deleted the rodrigo/tx-signing branch February 10, 2022 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Create an interface in Wallet to sign transactions
3 participants