Simple security proof of twin-field type quantum key distribution protocol