This guide details specific Command Line Interface (CLI) commands for the Sygma relayer, focusing on functionalities provided in the topology
, peer
, keygen
and utils
modules.
./sygma-relayer topology encrypt --path [path] --encryption-key [key]
Encrypt the provided topology with AES CTR. Outputs IV and ciphertext in hex.
--path
: Path to JSON file with network topology.--encryption-key
: Password to encrypt topology.
./sygma-relayer topology test --url [url] --decryption-key [key] --hash [hash]
Test if the provided URL contains a topology that can be decrypted with the provided password and parsed accordingly.
--decryption-key
: Password to decrypt topology.--url
: URL to fetch topology.--hash
: Hash of the topology.
./sygma-relayer peer gen-key
Generate a libp2p identity key using RSA with a key length of 2048 bits.
./sygma-relayer peer info --private-key [key]
Calculate a libp2p peer ID from the provided base64 encoded libp2p private key.
--private-key
: Base64 encoded libp2p private key.
./sygma-relayer keygen gen-key
Generate a 256-bit ECDSA keypair and print it out. This keypair can be used as a relayer's execution keypair.
./sygma-relayer utils derivateSS58 --privateKey [key] --networkID [id]
Print an SS58 formatted address (Polkadot) for a given PrivateKey in hex.
--privateKey
: Hex encoded private key.--networkID
: Network ID for a checksum, as per the registry.