Code:
// The 'magic_square' program.
program magic_square.aleo {
// State
// Public
import base64 | |
import requests | |
class AngleFinder: | |
def __init__(self): | |
self.endpoint = "http://pose-tracker-load-balancer-1564941657.us-west-2.elb.amazonaws.com/yoga/angle_calculator" | |
def convert_image_to_base64(self, image_path): | |
with open(image_path, "rb") as image_file: |
pragma circom 2.1.4; | |
include "circomlib/circuits/comparators.circom"; | |
template RangeProof(bits, max_abs_value) { | |
signal input in; | |
component lowerBound = LessThan(bits); | |
component upperBound = LessThan(bits); |
pragma circom 2.1.4; | |
template SumArray(numOfElements) { | |
signal input in[numOfElements]; | |
signal output out; | |
var sm = 0; | |
for(var i=0; i < numOfElements; i++) { | |
sm += in[i]; |
pragma solidity ^0.6.0; | |
contract SecretNumberAttack { | |
function attack(bytes32 hash) public returns (uint8) { | |
uint8 number; | |
uint8 secretNumber; | |
for (number = 0; number <= 256; number++) { | |
if (keccak256(abi.encodePacked(number)) == hash) { | |
secretNumber = number; |
This level walks you through the very basics of how to play the game. You can follow the steps below to do the setup or go through the walkthrough video to get started.
To play the game, you will need test ether. The easiest way to get some testnet ether is via a faucet.
Once you see some ether in your balance, move on to the next step.
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.13; | |
contract A { | |
error InvalidOwnerOrNewAddress(address newOwner); | |
address public owner; | |
constructor() { | |
owner = msg.sender; |