mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-24 10:41:57 +03:00
removes confusing examples
This commit is contained in:
parent
61556cca29
commit
d00eff2d86
2
examples/fibonacci/.gitignore
vendored
2
examples/fibonacci/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
outputs/
|
||||
/.leo
|
@ -1,8 +0,0 @@
|
||||
[project]
|
||||
name = "fibonacci"
|
||||
version = "0.1.0"
|
||||
description = "Returns a fibonnaci sequence"
|
||||
license = "LICENSE-MIT"
|
||||
|
||||
[remote]
|
||||
author = "aleo"
|
@ -1 +0,0 @@
|
||||
# fibonacci
|
@ -1,2 +0,0 @@
|
||||
[registers]
|
||||
r0: u32 = 0;
|
@ -1,16 +0,0 @@
|
||||
function fibonacci() -> u32 {
|
||||
let mut a = 0u32;
|
||||
let mut b = 1u32;
|
||||
|
||||
for i in 0..10 {
|
||||
a = b;
|
||||
b = a + b;
|
||||
}
|
||||
|
||||
return a
|
||||
}
|
||||
|
||||
// The 'fibonacci' main function.
|
||||
function main() -> u32 {
|
||||
return fibonacci()
|
||||
}
|
2
examples/square-root/.gitignore
vendored
2
examples/square-root/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
outputs/
|
||||
/.leo
|
@ -1,8 +0,0 @@
|
||||
[project]
|
||||
name = "square-root"
|
||||
version = "0.1.0"
|
||||
description = "prove knowledge of the square root `a` of a number `b`"
|
||||
license = "LICENSE-MIT"
|
||||
|
||||
[remote]
|
||||
author = "aleo"
|
@ -1 +0,0 @@
|
||||
# square-root
|
@ -1,7 +0,0 @@
|
||||
// The program input for square_root/src/main.leo
|
||||
[main]
|
||||
a: u32 = 337;
|
||||
b: u32 = 113569;
|
||||
|
||||
[registers]
|
||||
r0: bool = false;
|
@ -1,5 +0,0 @@
|
||||
// The 'square-root' main function.
|
||||
// prove knowledge of the square root `a` of a number `b`
|
||||
function main(a: u32, b: u32) -> bool {
|
||||
return a * a == b
|
||||
}
|
Loading…
Reference in New Issue
Block a user