simply figure out the sha
currently, I‘m using the legacy format because it‘s easier to do this function takes content and a type and writes out the loose object and returns a sha
[Validate]