Merge "Add WriteHashTree() to allow users process hashtree data themselves"