Hash functions for bitcoin apps