Builds on PR #30657.
Refactors read_xor_key() from util.py to test_node.py (comment #30657 (review))
Adds a check that xor.dat is created when missing (comment #30657 (review))
Help states:
-blocksxor
Whether an XOR-key applies to blocksdir *.dat files. The created XOR-key
will be zeros for an existing blocksdir or when `-blocksxor=0` is
set, and random for a freshly initialized blocksdir. (default: 1)