Mattia
(Mattia | MattiaNode)
17 August 2022 09:47
8
No, you just have to spin up a Radix node, you don’t have to become a validator or have any stake delegated. See here: Getting Started
Once your node is fully synced, you should be able to match the validator address with its IP from the logs, usually located in /etc/radixdlt/node/logs/radixdlt-core.log (on Linux).
These might help you too:
The Node Id reported in the Radix Node logs is a compressed public key - it starts with either 02 or 03 and is 33 bytes long. To convert it into a Validator Address then just bech32 encode it with a human readable part of rv.
import bech32
hrp = "rv"
node_id = "03d781270fcebe921a9517ead7f79ec4761a4dc80e2b8b705bc1f47938e1421305"
# Convert hex string into bytes
public_key = bytearray.fromhex(node_id)
# Convert from array of 8 bit unsigned integers to array of 5 bit unsigned integers
public_key…
Both the node address and the validator address are Bech32 encodings of the same compressed public key with different human-readable parts (hrp).
import bech32
node_address = "rn1q22ts4wderfhzham0vnzs93g68d5hal3g8yyvv06re8sn88er9ud7us2dgj"
print("Node Address:", node_address)
# Extract Node HRP (rn) and Public Key
_hrp, public_key5 = bech32.bech32_decode(node_address)
# Re-encode Public Key with Validator HRP (rv)
validator_address = bech32.bech32_encode("rv", public_key5)
print("Validator A…
1 Like