Assuming p=71 for all below problems.
- Find the elements in a finite field that are congruent to the following values:
- -1 ≅ 70 (since -1 mod 71 = 70 and 70-(-1) = 71, 71 % 71 == 0;
- -4 ≅ 67. 67 - (-4) = 71;
- -160 ≅ 53;
- 500 ≅ 429.
Assuming p=71 for all below problems.
| /// PoC: SOURCE=ETH, DEST=Linea, no L1 inclusion → routes to hardcoded Linea ChainSpec branch | |
| /// This demonstrates the wrong-spec code path without relying on on-chain verification. | |
| /// It confirms: | |
| /// - Non-OpStack path (OpEvmInput is None) | |
| /// - Validators later expect ETH_MAINNET_CHAIN_SPEC for SOURCE=ETH | |
| /// - The builder else-branch used LINEA_MAINNET_CHAIN_SPEC (hardcoded) | |
| #[tokio::test] | |
| async fn test_poc_wrong_chain_spec_eth_non_opstack_no_inclusion() { | |
| use alloy::transports::http::reqwest::Url; | |
| use risc0_steel::ethereum::{EthEvmEnv, ETH_MAINNET_CHAIN_SPEC}; |
| /** | |
| * Encryption class for encrypt/decrypt that works between programming languages. | |
| * | |
| * @author Vee Winch. | |
| * @link https://stackoverflow.com/questions/41222162/encrypt-in-php-openssl-and-decrypt-in-javascript-cryptojs Reference. | |
| * @link https://github.com/brix/crypto-js/releases crypto-js.js can be download from here. | |
| */ | |
| class Encryption { |