Skip to content

Add signing transactions mechnism for Bitcoin #46

Description

@Midren

Add signing transactions for Bitcoin. For now, we will be using only P2PKH.

Describe the solution you'd like
Implement a finite state machine to sign transactions similar to the one, that we have for Skycoin.

Additional context
Message for getting address should be written in a files fsm_bitcoin and fsm_bitcoin_impl.

Possible implementation
On the hardware-wallet part, we need only need to get signatures later that will be formed on the computer. In Bitcoin, we only need appropriate keypair and a hash of the previous transaction to get signatures, but it is important to send output addresses and number of bitcoins, so user will see to whom he sends coins.

  • Manage getting outputs, so the user can confirm it.
  • Sign double hash and send signature using protobuff.
  • Write tests for it.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions