If you want to learn about cryptographic protocols (many very relevant to Bitcoin) these are the best lecture notes: