Aere Network public source. Everything here can be checked against the live chain (chain id 2800, https://rpc.aere.network). Scope note, stated up front rather than buried: consensus on chain 2800 is classical secp256k1 ECDSA QBFT. The post-quantum work in this repository is at the signature, precompile, account and transport layers. Nothing here makes the consensus post-quantum, and no document in it should be read as claiming so.
22 lines
590 B
Solidity
22 lines
590 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.23;
|
|
|
|
// Test-only helpers for AereMailboxV3. Not for mainnet deployment.
|
|
|
|
contract TestRecipientV3 {
|
|
uint32 public lastOrigin;
|
|
bytes32 public lastSender;
|
|
bytes public lastBody;
|
|
uint256 public handleCount;
|
|
|
|
event Handled(uint32 origin, bytes32 sender, bytes body);
|
|
|
|
function handle(uint32 origin, bytes32 sender, bytes calldata body) external payable {
|
|
lastOrigin = origin;
|
|
lastSender = sender;
|
|
lastBody = body;
|
|
handleCount += 1;
|
|
emit Handled(origin, sender, body);
|
|
}
|
|
}
|