Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Signing Transactions with a private key #567

Open
srikanthsrnvs opened this issue Jun 10, 2021 · 1 comment
Open

Signing Transactions with a private key #567

srikanthsrnvs opened this issue Jun 10, 2021 · 1 comment

Comments

@srikanthsrnvs
Copy link

Can you expose a method to directly sign a transactions without needing to sync to the blockchain?

We run our own full nodes, so construct the raw transactions on our end, and merely need to sign the transaction on the device, and send it back to the server for propagation

How Can I do this with your library, or is there an easier way/?

For the record, we want to sign the raw transaction created using bcoin with bitcoin core 0.21

@esen
Copy link
Member

esen commented Jun 15, 2021

Hi @srikanthsrnvs,

Unfortunately, it's not possible in this kit. Because this kit is designed to manage all kinds of transactions including ones with non-standard scripts like HTLC locked transactions available in Hodler kit. That's why it needs an instance of MutableTransaction with all the detailed information about the inputs/outputs to sign it. A raw transaction cannot be signed so easily.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants