Can an ammonium-nitrate ice pack be used to instantly freeze an entire average sized human? Possible, yes. Feasible, no (It would take hundreds, or have to be huge, and it would take a very long time).
Assuming an average sized male weighing 62 kg, and an average specific heat capacity of 3470 J/kg•K, the minimum amount of energy required to completely freeze them is:
$q=mC\Delta T = 62kg\cdot 3470\frac{J}{kg\cdot K}\cdot\left ( 37-0 \right )\approx8000 kJ$
How much energy could be absorbed by an instant ice pack? The molar heat of solution is the amount of energy released or absorbed per mole of solute being dissolved, and is typically found experimentally. One source lists the molar heat of solution of ammonium nitrate as:
$\Delta H^o=25.41 \frac{kJ}{mol}$
With a molecular mass of 80.043 g/mol, how much ammonium nitrate would be required to achieve that much cooling?
$m_{NH_4NO_3} = 8000kJ \cdot \frac{1}{25.41\frac{kJ}{mol}}\cdot 80.043 \frac{g}{mol} \cdot \frac{1}{1000\frac{g}{kg}}\approx 25kg $
That's a big cold pack, and that doesn't include the mass of water required to dissolve that much ammonium nitrate. Furthermore, this is a lower bound on the mass and doesn't incorporate heat flux, or how long it would take.
A typical instant ice pack contains 40 g of ammonium nitrate and enough water to make 200 g of solution. (Means we're looking at ~625 ice packs to freeze a human in an perfectly insulated environment) This also doesn't account for the extra amount of heat being generated by the human - on the order of 100-120W.
Can an instant ice pack cause localized tissue damage due to cooling? Yes, but it takes a while.
An icepack can lead to serious burns and frostbite depending on duration of contact, size of contact, blood flow, and other factors like wind. The primary mechanism of injury is freezing the water in the blood cells. Secondary injury can be caused by lack of blood flow to an area of tissue.
Ice pack burns usually results from minutes of contact (e.g., 20 minutes), not the fractions of seconds that may be involved in a melee attack.
Is an instant ice-pack sword feasible? Possible, maybe. Feasible, not really.
See @wizzwizz4's analysis.
Melee cold damage requires large amounts of heat to be transferred quickly. This has two parts: how much heat can be transferred (heat transfer), and how quickly that heat can be transferred (heat flux).
The heat transfer depends on the mass, specific heat capacity, and temperature differential. The heat flux depends on conductivity, and gradient.
As tissue freezes, heat conduction is reduced. The frozen tissue tends to insulate deeper tissue from being frozen.
Relying solely on conduction (e.g. direct contact) for heat transfer is going to be limited, since any heat removed from the tissue is going to warm up the weapon, reducing the temperature differential. This means a massive weapon.
What form could an instant ice-pack weapon take to maximize damage?
Maximize heat transfer
- increase mass of weapon
- increase specific heat capacity of weapon
- reduce mass of tissue
- increase temperature differential
- increase contact time
Maximize heat flux:
- increase the surface area in contact
- increase temperature differential
In a melee context, maximizing the amount of time in contact with the tissue could be achieved with a blade that penetrates and stays, or something that is wrapped around a part of the target (like a whip).
To maximize the temperature differential between tissue and material, the weapon needs to be extremely cold (as close to 0K as possible). This needs to be balanced with the fact that many materials become more brittle at lower temperature.
Conduction could be increased on the weapon side if it was made of a material with high thermal conductivity (e.g. metal). This could be implemented as a hollow sword, with the instant ice pack material inside.
Local freezing could also make a penetrated blade more difficult to remove if it was frozen to the tissue.
EDIT: The original answer was based on super-cooled liquids as an alternative mechanism to get instant ice. A volume of super-cooled liquid could be nucleated and crystallized/frozen into the shape of whatever container it was in: basically an instant icicle. This could cause localized tissue damage using the same mechanism as an ice burn, especially if it was stabbed and remained in place.