maidsafe / sn_dbc

Safe Network DBCs
BSD 3-Clause "New" or "Revised" License
15 stars 16 forks source link

feat: verify (always) Amount matches Commitment #150

Closed dan-da closed 2 years ago

dan-da commented 2 years ago

High level changes:

  1. The check that secret amount matches commitment is now moved inside Dbc::verify() so there is no chance of a wallet forgetting to do it.

  2. We standardize on verify/verification instead of validate/validation. This matches usage in ringct and blsttc, so it makes the api more regular.

Details: