```ruby
message.signature.key_info.try(:key_name)
```
Probably better to give the Signature class a method to fetch the key name so you get

```ruby
message.signature.key_name
```