Definitions of witness
to see a crime or accident etc happen
Constable Savage witnessed the accused leave the building at 10:20 pm.
to see a document being signed and to then sign it yourself to confirm this
He witnessed the signing of the marriage contract.