🦁 The Leo Programming Language. A Programming Language for Formally Verified, Zero-Knowledge Applications
Go to file
bors[bot] c2434919da
Merge #742
742: Bump num-bigint from 0.3.1 to 0.4.0 r=collinc97 a=dependabot-preview[bot]

Bumps [num-bigint](https://github.com/rust-num/num-bigint) from 0.3.1 to 0.4.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rust-num/num-bigint/blob/master/RELEASES.md">num-bigint's changelog</a>.</em></p>
<blockquote>
<h1>Release 0.4.0 (2021-03-05)</h1>
<h3>Breaking Changes</h3>
<ul>
<li>Updated public dependences on <a href="https://github-redirect.dependabot.com/rust-num/num-bigint/pull/194">arbitrary, quickcheck</a>, and <a href="https://github-redirect.dependabot.com/rust-num/num-bigint/pull/185">rand</a>:
<ul>
<li><code>arbitrary</code> support has been updated to 1.0, requiring Rust 1.40.</li>
<li><code>quickcheck</code> support has been updated to 1.0, requiring Rust 1.46.</li>
<li><code>rand</code> support has been updated to 0.8, requiring Rust 1.36.</li>
</ul>
</li>
<li><a href="https://github-redirect.dependabot.com/rust-num/num-bigint/pull/195"><code>Debug</code> now shows plain numeric values for <code>BigInt</code> and <code>BigUint</code></a>,
rather than the raw list of internal digits.</li>
</ul>
<p><strong>Contributors</strong>: <a href="https://github.com/cuviper"><code>@cuviper</code></a>, <a href="https://github.com/Gelbpunkt"><code>@Gelbpunkt</code></a></p>
<h1>Release 0.3.2 (2021-03-04)</h1>
<ul>
<li><a href="https://github-redirect.dependabot.com/rust-num/num-bigint/pull/175">The new <code>BigUint</code> methods <code>count_ones</code> and <code>trailing_ones</code></a> return the
number of <code>1</code> bits in the entire value or just its least-significant tail,
respectively.</li>
<li><a href="https://github-redirect.dependabot.com/rust-num/num-bigint/pull/183">The new <code>BigInt</code> and <code>BigUint</code> methods <code>bit</code> and <code>set_bit</code></a> will read
and write individual bits of the value. For negative <code>BigInt</code>, bits are
determined as if they were in the two's complement representation.</li>
<li><a href="https://github-redirect.dependabot.com/rust-num/num-bigint/pull/187">The <code>from_radix_le</code> and <code>from_radix_be</code> methods</a> now accept empty
buffers to represent zero.</li>
<li><a href="https://github-redirect.dependabot.com/rust-num/num-bigint/pull/192"><code>BigInt</code> and <code>BigUint</code> can now iterate digits as <code>u32</code> or <code>u64</code></a>,
regardless of the actual internal digit size.</li>
</ul>
<p><strong>Contributors</strong>: <a href="https://github.com/BartMassey"><code>@BartMassey</code></a>, <a href="https://github.com/cuviper"><code>@cuviper</code></a>, <a href="https://github.com/janmarthedal"><code>@janmarthedal</code></a>, <a href="https://github.com/sebastianv89"><code>@sebastianv89</code></a>, <a href="https://github.com/Speedy37"><code>@Speedy37</code></a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d1e4498cbc"><code>d1e4498</code></a> Merge <a href="https://github-redirect.dependabot.com/rust-num/num-bigint/issues/197">#197</a></li>
<li><a href="4b7c9d78c5"><code>4b7c9d7</code></a> Fix clippy::needless_range_loop</li>
<li><a href="a49c0acc48"><code>a49c0ac</code></a> Release 0.4.0</li>
<li><a href="7c40fded5d"><code>7c40fde</code></a> Merge <a href="https://github-redirect.dependabot.com/rust-num/num-bigint/issues/194">#194</a> <a href="https://github-redirect.dependabot.com/rust-num/num-bigint/issues/195">#195</a></li>
<li><a href="96cf255572"><code>96cf255</code></a> Update to arbitrary-1 and quickcheck-1</li>
<li><a href="60637c55c3"><code>60637c5</code></a> Merge <a href="https://github-redirect.dependabot.com/rust-num/num-bigint/issues/185">#185</a></li>
<li><a href="4247abe601"><code>4247abe</code></a> implement xorshift* for benchmarking</li>
<li><a href="998d4cb559"><code>998d4cb</code></a> seed tests with u64 for platform consistency</li>
<li><a href="46aa21283a"><code>46aa212</code></a> Bump to 0.4.0-pre</li>
<li><a href="63a89672f6"><code>63a8967</code></a> Update for rand's MSRV 1.36</li>
<li>Additional commits viewable in <a href="https://github.com/rust-num/num-bigint/compare/num-bigint-0.3.1...num-bigint-0.4.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=num-bigint&package-manager=cargo&previous-version=0.3.1&new-version=0.4.0)](https://dependabot.com/compatibility-score/?dependency-name=num-bigint&package-manager=cargo&previous-version=0.3.1&new-version=0.4.0)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)



</details>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-09 00:22:13 +00:00
.cargo Adds initial wasm template 2021-02-04 19:23:58 -08:00
.circleci Cleanup 2021-02-25 10:58:52 -08:00
.github Remove leo publish from GA 2021-02-25 10:02:31 -08:00
.resources Update README 2021-03-07 12:31:40 -08:00
asg Bump num-bigint from 0.3.1 to 0.4.0 2021-03-08 23:39:44 +00:00
ast fix tests 2021-03-07 06:48:02 -08:00
compiler Bump num-bigint from 0.3.1 to 0.4.0 2021-03-08 23:39:44 +00:00
examples rebase and replace const keyword in tests 2021-02-16 14:19:20 -05:00
gadgets Format and clean up, enable default on snarkvm_algorithms 2021-03-04 11:09:24 -08:00
imports Format and clean up, enable default on snarkvm_algorithms 2021-03-04 11:09:24 -08:00
input Format and clean up, enable default on snarkvm_algorithms 2021-03-04 11:09:24 -08:00
leo Format and clean up, enable default on snarkvm_algorithms 2021-03-04 11:09:24 -08:00
linter chore(leo): bump version for new release 2021-02-26 19:42:35 -08:00
package Format and clean up, enable default on snarkvm_algorithms 2021-03-04 11:09:24 -08:00
parser remove if from ternary expression 2021-03-08 14:45:38 -08:00
state Format and clean up, enable default on snarkvm_algorithms 2021-03-04 11:09:24 -08:00
synthesizer Bump num-bigint from 0.3.1 to 0.4.0 2021-03-08 23:39:44 +00:00
tests remove if from ternary expression 2021-03-08 14:45:38 -08:00
.codecov.yml Adds configuration files for tooling 2020-06-07 22:53:45 -07:00
.gitignore Update .gitignore 2021-02-24 20:46:54 -08:00
.licenserc.json Update license to 2021 2021-02-01 20:26:56 -08:00
.rustfmt.toml Format and clean up, enable default on snarkvm_algorithms 2021-03-04 11:09:24 -08:00
.rusty-hook.toml Format and clean up, enable default on snarkvm_algorithms 2021-03-04 11:09:24 -08:00
bors.toml Set bors approval minimum to 1 2021-02-11 13:21:40 -08:00
Cargo.lock Bump num-bigint from 0.3.1 to 0.4.0 2021-03-08 23:39:44 +00:00
Cargo.toml merge master and fix build issues 2021-03-04 14:11:17 -08:00
CONTRIBUTING.md add contributing.md 2021-02-16 15:22:02 -08:00
DEVELOPMENT.md Adds DEVELOPMENT.md 2021-02-24 20:28:27 -08:00
FAQs.md Update and rename FAQ.md to FAQs.md 2020-08-15 03:01:30 -07:00
LICENSE.md Adds LICENSE.md 2021-02-10 22:23:45 -08:00
README.md Update README 2021-03-07 12:31:40 -08:00
SECURITY.md Adds SECURITY.md 2021-02-10 22:31:12 -08:00

The Leo Programming Language

Bors enabled

Leo is a functional, statically-typed programming language built for writing private applications.

Table of Contents

1. Overview

Welcome to the Leo programming language.

Leo provides a high-level language that abstracts low-level cryptographic concepts and makes it easy to integrate private applications into your stack. Leo compiles to circuits making zero-knowledge proofs practical.

The syntax of Leo is influenced by traditional programming languages like JavaScript, Scala, and Rust, with a strong emphasis on readability and ease-of-use. Leo offers developers with tools to sanity check circuits including unit tests, integration tests, and console functions.

Leo is one part of a greater ecosystem for building private applications on Aleo. If your goal is to build a user experience on the web that is both truly personal and truly private, then we recommend downloading the Aleo Studio IDE and checking out the Aleo Package Manager.

2. Build Guide

2.1 Install Rust

We recommend installing Rust using rustup. You can install rustup as follows:

  • macOS or Linux:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    
  • Windows (64-bit):

    Download the Windows 64-bit executable and follow the on-screen instructions.

  • Windows (32-bit):

    Download the Windows 32-bit executable and follow the on-screen instructions.

2.2a Build from Crates.io

We recommend installing Leo this way. In your terminal, run:

cargo install leo-lang

Now to use Leo, in your terminal, run:

leo

2.2b Build from Source Code

Alternatively, you can install Leo by building from the source code as follows:

# Download the source code
git clone https://github.com/AleoHQ/leo
cd leo

# Build in release mode
$ cargo build --release

This will generate an executable under the ./target/release directory. To run Leo, run the following command:

./target/release/leo

3. Quick Start

Use the Leo CLI to create a new project

# create a new `hello_world` Leo project
leo new hello_world
cd hello_world

# build & setup & prove & verify
leo run

The leo new command creates a new Leo project with a given name.

The leo run command will compile the main program, generate keys for a trusted setup, fetch inputs, generate a proof and verify it.

Congratulations! You've just run your first Leo program.

4. Documentation

5. Contributing

Please see our guidelines in the developer documentation

Thank you for helping make Leo better!

6. License

License: GPL v3