private static byte[] snapshot(final KeccakDigest digest) {
    final byte[] out = new byte[Bytes32.SIZE];
    new KeccakDigest(digest).doFinal(out, 0);
    return out;
  }
TODO: It's not wise to print secrets. Maybe print only the first and last 8 bytes (ellipsize
the middle). That might be enough for testing.
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/rlpx/handshake/HandshakeSecrets.java