Skip to content

Instantly share code, notes, and snippets.

@kyuupichan
kyuupichan / unsigned-tx.rst
Last active April 24, 2019 00:09
Unsigned and partially-signed txs

Unsigned / partially signed transaction serialization

A normal serialised transaction with only signatures missing. Each signature is replaced with a single-byte OP_PUSHDATA1 of 0xff. Valid signatures all begin with 0x30 so no confusion is possible.

A signature request wants to be able to add metadata to help the user and wallet to process it:

  1. Informative message
  2. Information about each output
  3. A list of information about required signatures, one per input that is not yet fully signed

Keybase proof

I hereby claim:

  • I am kyuupichan on github.
  • I am kyuupichan (https://keybase.io/kyuupichan) on keybase.
  • I have a public key ASAECl3IR6kg4RV4Q5n6XURw4r97e7rB8cArt6FPlyR4FAo

To claim this, I am signing this object: