Handle multiple key pairs in signature