Good to see other people are inventing AppFS ( http://appfs.rkeene.org/ ) :-)

Please don't use SHA-1. It's almost broken.

Use multihashes for hash algorithm agility :) https://github.com/multiformats/multihash