Sign or verify an electronic document signature