Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

How to sign/decode unsigned transaction #35

Closed
mandelmonkey opened this issue Sep 12, 2016 · 2 comments
Closed

How to sign/decode unsigned transaction #35

mandelmonkey opened this issue Sep 12, 2016 · 2 comments

Comments

@mandelmonkey
Copy link

Hi

I am interested in using the sign api to sign an unsigned transaction
e.g.
0100000001bf1f87c5041063d8353f3d8e109fb11405456d7972c5f401308ced36eb9e8fea010000001976a914e1869fa1cec7741a502e7a5bd938ed8f5e354b5488acffffffff0200000000000000002e6a2c0b0b8cb664864cdf2ff70668595e63567b9d8ece36b2383513b6eeab7f1c15e70466593f13bb49618b8afe7079e93a00000000001976a914e1869fa1cec7741a502e7a5bd938ed8f5e354b5488ac00000000

Looking at the api I need to use inputs and outputs,
TrezorConnect.signTx(inputs, outputs, function (result) {

Is there a way to decode this hex into compatible inputs and outputs for the TrezorConnect.signTx function?

@mandelmonkey mandelmonkey changed the title How to sign/decode unsigned trasnaction How to sign/decode unsigned transaction Sep 12, 2016
@prusnak
Copy link
Member

prusnak commented Sep 12, 2016

No. TREZOR needs to know which private key to use and this is not stored in the unsigned transaction.

@prusnak prusnak closed this as completed Sep 12, 2016
@mandelmonkey
Copy link
Author

Thanks for the reply

So the unsigned transaction hex is a transaction containing coins from the trezors private keys

Actually I plan to send counterparty tokens to my trezor

Then create a transaction to spend those tokens using counterparty but I need trezor to sign that transaction

Sent from my iPhone

On Sep 12, 2016, at 6:53 PM, Pavol Rusnak notifications@github.com wrote:

No. TREZOR needs to know which private key to use and this is not stored in the unsigned transaction.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

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