Chapter 4 has all the implementation details of git-verify, itself available here:https://codeberg.org/flandweber/git-verify