Context.check_privatekey

Add the missing implementation of check_privatekey.  Fixes #178.