add pub.Equal() to compare keys

Signed-off-by: Tom Grennan <tom@apptimist.co>