> For the complete documentation index, see [llms.txt](https://es-kb.topopool.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://es-kb.topopool.com/novedades/votar_catalyst_pledge.md).

# Votar en Catalyst con wallet de pledge (deprecado)

Guía rápida para registrar tu wallet de pledge CLI para votar en Catalyst, realizar en máquina segura ya que requiere manipular las llaves del pledge.

{% hint style="danger" %}
Este proceso implica manipular tus llaves de payment y stake en un nodo **online**. Por favor extreme las medidas de precaución y utilice una máquina segura.
{% endhint %}

## Instalar voter-registration-tool

Nos permitirá preparar la transacción para registrar nuestra wallet

```
cd ~/src
git clone https://github.com/input-output-hk/voting-tools
cd voting-tools
cabal update
cabal build
cp $(find . -name voter-registration -executable -type f) ~/.local/bin/
```

## Instalar vit-kedqr

Lo utilizaremos para generar el código QR para la app mobile de Catalyst

```
cd ~/src
wget https://github.com/input-output-hk/vit-kedqr/releases/download/v0.0.1/vit-kedqr_Linux_x86_64.tar.gz
tar -xvzf vit-kedqr_Linux_x86_64.tar.gz
cp vit-kedqr_Linux_x86_64/vit-kedqr ~/.local/bin/
```

## Instalar jcli

Lo utilizaremos para generar nuestras key para la votación.

```
wget https://github.com/input-output-hk/jormungandr/releases/download/v0.9.3/jormungandr-0.9.3-x86_64-unknown-linux-gnu-generic.tar.gz
tar -xvzf jormungandr-0.9.3-x86_64-unknown-linux-gnu-generic.tar.gz
cp jcli ~/.local/bin/
```

## Generar llaves

```
cd ~/src/voting-tools
jcli key generate --type ed25519extended > catalyst-vote.skey
jcli key to-public < catalyst-vote.skey > catalyst-vote.pkey
```

## Generar archivo de transacción firmado

{% hint style="danger" %}
Aquí asumimos que todos los archivos se encuentran en el mismo directorio. Recuerda que toda operación con estas llaves debe hacerse en una maquina offline y segura.
{% endhint %}

```
voter-registration  --sign --payment-signing-key ~/cardano-node/operator/operator.skey \
    --payment-address $(cat ~/cardano-node/operator/operator.addr) \
    --vote-public-key catalyst-vote.pkey \
    --stake-signing-key ~/cardano-node/pool-keys/stake.skey \
    --mainnet \
    --mary-era \
    --cardano-mode \
    --out-file vote-registration.tx
```

## Someter transacción

```
cardano-cli transaction submit --cardano-mode \
    --mainnet \
    --tx-file vote-registration.tx
```

## Generar código QR

Ahora generamos un código QR que podremos escanear desde la app de "Catalyst Voting" en nuestro celular. Debemos usar el mismo PIN de 4 dígitos que utilizaremos en el móvil (a elección del usuario) y opcionalmente podemos guardar el QR agregando el parámetro `-output=QR.png`.

```
vit-kedqr -input catalyst-vote.skey -pin=1234 -output=QR.png
```
