zcash-test-vectors/tv_output.py

4 lines
109 B
Python
Raw Normal View History

2018-06-04 21:10:43 -07:00
def chunk(h):
h = str(h, 'utf-8')
return '0x' + ', 0x'.join([h[i:i+2] for i in range(0, len(h), 2)])