We came across an official document from the Spanish government (in English and Spanish) that outlines what you need to prove residency in Spain and your rights under the withdrawal agreement. It doesn't go into great detail, just being one page, but you might be interested.