Module sign::fragment

source ·
Expand description

Generate Fragments based upon specification Reference specfication for more context in relation to constants outlined in this file.

Constants

  • Payload type = 2 %x02 ENCRYPTED-VOTE PROOF-VOTE ; Private payload
  • INPUT 🔒
    Only 1 input (subsequently 1 witness), no output VoteCast TX should have only 1 input, 0 output and 1 witness (signature).
  • INPUT-ACCOUNT = %xff VALUE UNTAG-ACCOUNT-ID
  • NONCE 🔒
    Nonce
  • OUTPUT 🔒
  • PADDING 🔒
    Padding
  • Padding and Tag are 1 byte each; size must be added to the fragment size
  • VALUE 🔒
    Values in inputs: redundant for voting
  • VoteCast tag
  • Type = 2 utxo witness scheme ED25519 Signature (64 bytes)

Functions