Changed attachXPublicKey to public

Added log messages for attaching invalid sub public keys