Updated peer identity to use array instead of slice. This allows it to be comparable and used as a key in a map.