# Votar en Catalyst con wallet de pledge (deprecado)

{% 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://es-kb.topopool.com/novedades/votar_catalyst_pledge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
