SAM: Cherrypick from patch in ticket #1318:
   - Check for extra bytes in private key string
   - checkPrivateDestination() returns boolean instead of throws