I understand that BIP12 was withdrawn, and probably because of this exploit below. Can someone explain how this attack would have worked and the effect it would have on the network?
for (;;) {
RAND_bytes(nonce.b, sizeof(nonce));
RIPEMD160(nonce.b, sizeof(nonce), digest);
if (
digest[0] == 174 && // OP_CHECKMULTISIG
digest[1] == 76 && // OP_PUSHDATA1
digest[2] == 16 // 0x16
) {
// We'll print status info on partial hits, just to make things more
// interesting.
printf("%llx\n", nonce.i);
print_hex(digest, 20);
// Check for full hit
if (digest[19] == 117) // OP_DROP
return;
}