Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e/policy: ensure that modified policy hash is valid hex
The policy hash is hex-encoded and unfortunately, XORing 1 into hex digits doesn't always yield valid hex digits: >>> [chr(ord(hex(i)[2:])^1) for i in range(16)] ['1', '0', '3', '2', '5', '4', '7', '6', '9', '8', '`', 'c', 'b', 'e', 'd', 'g'] Instead, decode the hex-encoded hash and XOR 1 into that.
- Loading branch information