code: def generateIdentityKeyPair():
          
          keyPair = Curve.generateKeyPair()
          publicKey = IdentityKey(keyPair.getPublicKey())
          serialized = '0a21056e8936e8367f768a7bba008ade7cf58407bdc7a6aae293e2c' \
                       'b7c06668dcd7d5e12205011524f0c15467100dd603e0d6020f4d293' \
                       'edfbcd82129b14a88791ac81365c'
          serialized = binascii.unhexlify(serialized.encode())
          identityKeyPair = IdentityKeyPair(publicKey, keyPair.getPrivateKey())
          return identityKeyPair
docs: Generate an identity key pair.  Clients should only do this once,
          at install time.
          @return the generated IdentityKeyPair.