passes += +test
failures += +!test
+// Check identity signature verifies
+result = verify(IDENTITY.signatureBytes, new Uint8Array(32), IDENTITY.publicKeyBytes)
+test = result === true
+check(`verify identity signature bytes ${IDENTITY.signature}`, test)
+passes += +test
+failures += +!test
+
// identity A and S=0 pin check_r so only R moves; any other A hides equalbytes bugs
const forgery = IDENTITY.signatureBytes.slice()
const accepted = []
}
}
test = accepted.length === 0
-check(`verify_blocks rejects R xor mask${test ? '' : ` (failed to reject ${accepted})`}`, test)
+check(`verify_blocks rejects R xor mask${test ? '' : ` (failed to reject ${JSON.stringify(accepted)})`}`, test)
passes += +test
failures += +!test