This paper explores how blockchain can be applied towards security in IOT. Though this idea has been thought about, there has not been a comprehensive survey on its use, which this paper addresses. The survey addresses ideas, architectures, and techniques to approach the problem and concludes with some guidance for future efforts.