To identify the purity of silk, you have to burn a thread of silk. If the burning smell of that thread is similar to burning smell of hair then the thread will be a pure silk. Silk and hairs are protein fibres, thus, they generate same smell.
To identify the purity of cotton, you have to burn a thread of cotton. If the burning smell of that thread is similar to burning smell of paper then the thread will be pure cotton. Cotton and paper are carbohydrates, thus, they generate same smell.