This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tkinter as tk | |
| def encrypt(value: str, depth: int) -> str: | |
| # Create a 2D list to represent the rail fence pattern | |
| rail = [['\n' for _ in range(len(value))] for _ in range(depth)] | |
| direction = False | |
| row, col = 0, 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.21; | |
| import {VotingInterface} from "./VotingInterface.sol"; | |
| /////////////// | |
| // Errors // | |
| /////////////// | |
| error Voting__InvalidChoiceIndex(uint256 choiceIndex); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as crypto from "crypto"; | |
| export function keyPair(): { publicKey: string; privateKey: string } { | |
| const a: bigint = 0n; | |
| const b: bigint = 7n; | |
| const p: bigint = 2n ** 256n - 2n ** 32n - 977n; | |
| const n: bigint = | |
| 115792089237316195423570985008687907852837564279074904382605163141518161494337n; | |
| const g = { |