gottstech / gotts

A blockchain for non-collateralized stable-coins, follow MimbleWimble protocol but with explicit amount.
https://gotts.tech
Apache License 2.0
49 stars 4 forks source link

Add 2 tests for Output/OutputI/OutputII Hash #12

Closed garyyu closed 4 years ago

garyyu commented 4 years ago

The tests for the following designed behaviour:

    // Among all 3 types: Output, OutputI, and OutputII, we define same Hash
    // for all of them:
    // 1. Only the OutputIdentifier is used for Hash.
    // 2. All 3 types (Output, OutputI, OutputII) have same Hash result.

And need some time to re-think it, is it reasonable to have this behaviour? the Output MMR will be same even if the detail of the OutputX are different!

I will look into a refactoring on this in another PR.