An affidavit is a written document that alleges a set of factual statements, and may be submitted as evidence as part of a court case.
In other words, an affidavit is the written version of testifying in court under oath, and requires signing by a licensed public notary.