Structs

  • Struct is responsible for adding some code which makes converting into transaction input/output easily. Also it held all needed information (private key, public key) which can construct witness for transaction.

Enums