there's such a system that's been deployed in various jurisdictions in the US called the archive framework: https://github.com/openlawlibrary/taf
it was built by academics deeply familiar with the security and usability of git and secure tools.