hyperledger / indy-vdr

A library and proxy server for interacting with Hyperledger Indy Node ledger instances
Apache License 2.0
54 stars 71 forks source link

InvalidClientTaaAcceptanceError time too precise error if container timezone is not UTC #210

Closed Ennovate-com closed 1 year ago

Ennovate-com commented 1 year ago

When running in a container where the timezone is not UTC, acceptance of the TAA results in an error:


 InvalidClientTaaAcceptanceError('Txn Author Agreement acceptance time 1691989200 is too precise and is a privacy risk.',)```

The agreement acceptance time should always reflect a time of midnight in UTC, regardless of the default timezone.
Ennovate-com commented 1 year ago

This change should be made wherever the TAA acceptance time is being calculated. There is one place in Indy VDR fixed by PR #211 and two places in ACA-Py fixed by PR #2420.