factor out signing/verification
quell warnings