coinbase / mesh-specifications

Specification files for the Mesh Blockchain Standard
Apache License 2.0
327 stars 93 forks source link

Add Coin Model #30

Closed patrick-ogrady closed 4 years ago

patrick-ogrady commented 4 years ago

To support automatic testing of UTXO-based chains, we need greater visibility into the creation and destruction of "coins". This PR adds support for doing so with the concept of the Coin. Generic UTXOs in Rosetta have a coin_identifier, which can be any string (ex: Bitcoin would be tx_hash:index), and can be created or spent with CoinAction.

Because of this modeling abstraction, it is possible to support both UTXO-based transfers and account-based transfers at the same time.

Related Issue: #28

Changes