Rayls Relayer
The Rayls Relayer exists to carry secure and efficient communication between a Rayls Node and a Rayls Private Network Hub, so that transactions crossing between them are properly validated and executed. In doing so the Relayer maintains the privacy and security of those transactions while letting the components of the Rayls ecosystem interact.
Each time a Rayls Node connects to a new Private Network Hub, a dedicated Relayer is installed to orchestrate private cross-chain communication.
Key Objectives
Transaction Propagation: Relay transactions securely and efficiently between a Rayls Node and a Private Network Hub.
Privacy Preservation: Keep all sensitive transaction details confidential throughout the relay process.
Consistency and Integrity: Maintain the consistency and integrity of transactions across every layer of the network.
Core Functions
1. Transaction Relay
The Rayls Relayer relays transactions between a Rayls Node and a Private Network Hub, which involves retrieving transactions that have been finalised in the Rayls Sovereign ledger, validating them, and broadcasting them in encrypted form to the Private Network Hub.
Before relaying, the Relayer runs a series of validation checks to confirm that the transaction meets all necessary criteria. One part of that validation is a check of cryptographic proofs to guard against fraud or double spend. Other checks test the transaction against governance rules imposed by the Private Network Operator, such as whether the token being sent has been frozen, or whether the sending Sovereign ledger is indeed a member of the Private Network.
2. Privacy and Security
The Rayls Relayer handles private data securely throughout the relay process, using encryption and further security measures so that each transaction retains end-to-end privacy (all transaction data is encrypted) and anonymity (the sender and receiver details are hidden).
Both the sending and the receiving Rayls Node can decrypt the transaction using their Diffie-Hellman (DH) keys. A copy of those DH keys may optionally be given to an Auditor of the network, allowing the Auditor to look inside encrypted transactions on the Private Network Hub. Privacy and anonymity are preserved in full for every other member of the Private Network.
3. Error Handling and Recovery
Under the Rayls Protocol, all transactions within a Private Network are atomic, so they either complete entirely or revert to their previous state.
Where a transaction relay fails or hits an error, the Rayls Relayer applies its error detection, handling and recovery mechanisms so that the transaction is either retried or rolled back as appropriate.
Architecture and Integration
1. Integration with Rayls Sovereign ledgers
The Relayer for a Rayls Node is tightly integrated with the Rayls Sovereign ledger, acting as a dedicated two-way bridge between that node and the Private Network Hub.
- API Integration: The Relayer uses API endpoints to interact with the Rayls Sovereign ledger, which keeps communication and transaction retrieval straightforward.
- Event Monitoring: The Relayer continuously monitors events in the Rayls Sovereign ledger to detect when transactions are finalised and ready to be relayed.
2. Interaction with the Private Network Hub
The Relayer interacts with the Rayls Private Network Hub to broadcast encrypted transactions to the Private Network Hub ledger, and it uses cryptographic proofs to establish that cross-chain transactions can be marked as final.
- Transaction Broadcasting: The Relayer uses secure communication channels to broadcast encrypted transactions to the Private Network Hub.
- Commitment and Proof: The Relayer accompanies every transaction relayed to the Private Network Hub with the necessary proofs and commitments, so that the chain's validation requirements are met.
3. Scalability and Performance
The Rayls Relayer is built for high transaction volumes and scales as the network grows, with an architecture that supports parallel processing and efficient use of resources so that performance holds up under heavy load.
- Parallel Processing: The Relayer can process multiple transactions simultaneously, which reduces latency and increases throughput.
- Resource Management: The Relayer manages system resources efficiently to maintain performance and scalability.
Security and Compliance
1. Secure Relay Protocols
The Rayls Relayer applies advanced security protocols so that relayed transactions are protected against tampering and unauthorised access.
- Encryption: All communication between the Relayer, the Rayls Nodes, and the Private Network Hub is fully encrypted, end to end.
- Authentication: The Relayer authenticates every party involved in the transaction relay process to prevent unauthorised access.
2. Compliance with Governance Policies
The Rayls Relayer complies with the governance policies established across the Rayls ecosystem and with the specific governance rules enforced by the Private Network Operator, confirming that all relayed transactions adhere to those policies before they are executed, which keeps the process transparent and accountable.
- Policy Enforcement: The Relayer enforces governance policies, so that all transactions meet the required standards.
- Audit Logs: The Relayer maintains detailed logs of every relayed transaction, which can be audited against regulatory and governance requirements.
Conclusion
The Rayls Relayer manages secure, scalable and privacy-preserving transaction flow between Rayls Nodes and the Private Network Hub of a Rayls Private Network.
Every transaction it handles is relayed, validated and recorded with full integrity, which is what holds the reliability of the wider Rayls network in place.
Updated 18 days ago
