Added keyNumber to CustomPublicKey.