Skip to content

Commit

Permalink
License and copyright (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
la10736 authored Mar 28, 2024
1 parent 565976c commit ed74fb5
Show file tree
Hide file tree
Showing 10 changed files with 828 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
[package]
name = "fflonk_verifier"
version = "0.2.0"
version = "0.3.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
rust-version = "1.60"
license = "GPL-3.0"
repository = "https://github.com/HorizenLabs/fflonk_verifier"
authors = ["Michele d'Amico <[email protected]>", "Horizen <[email protected]>"]
description = "A pure Rust library to verify fflonk proof"
keywords = ["crypto", "no-std", "blockchain", "cryptography"]

[dependencies]
snafu = { version = "0.7.5", default-features = false }
Expand Down
693 changes: 693 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions benches/base.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2024, The Horizen Foundation
// Copyright 2021 0KIMS association.
//
// fflonk_verifier is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// fflonk_verifier is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with fflonk_verifier. If not, see <http://www.gnu.org/licenses/>.

fn main() {
// Run registered benchmarks.
divan::main();
Expand Down
16 changes: 16 additions & 0 deletions src/hash.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2024, The Horizen Foundation
// Copyright 2021 0KIMS association.
//
// fflonk_verifier is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// fflonk_verifier is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with fflonk_verifier. If not, see <http://www.gnu.org/licenses/>.

use substrate_bn::arith::U256;

pub(crate) trait Hasher {
Expand Down
16 changes: 16 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2024, The Horizen Foundation
// Copyright 2021 0KIMS association.
//
// fflonk_verifier is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// fflonk_verifier is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with fflonk_verifier. If not, see <http://www.gnu.org/licenses/>.

#![cfg_attr(not(feature = "std"), no_std)]
#![doc = include_str!("../README.md")]

Expand Down
16 changes: 16 additions & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2024, The Horizen Foundation
// Copyright 2021 0KIMS association.
//
// fflonk_verifier is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// fflonk_verifier is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with fflonk_verifier. If not, see <http://www.gnu.org/licenses/>.

use substrate_bn::arith::U256;

macro_rules! u256 {
Expand Down
16 changes: 16 additions & 0 deletions src/proof_input.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2024, The Horizen Foundation
// Copyright 2021 0KIMS association.
//
// fflonk_verifier is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// fflonk_verifier is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with fflonk_verifier. If not, see <http://www.gnu.org/licenses/>.

use snafu::Snafu;
use substrate_bn::{arith::U256, AffineG1, FieldError, Fq, Fr, GroupError, G1};

Expand Down
16 changes: 16 additions & 0 deletions src/should.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2024, The Horizen Foundation
// Copyright 2021 0KIMS association.
//
// fflonk_verifier is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// fflonk_verifier is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with fflonk_verifier. If not, see <http://www.gnu.org/licenses/>.

use rand::Rng;
use rstest::{fixture, rstest};

Expand Down
16 changes: 16 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2024, The Horizen Foundation
// Copyright 2021 0KIMS association.
//
// fflonk_verifier is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// fflonk_verifier is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with fflonk_verifier. If not, see <http://www.gnu.org/licenses/>.

use substrate_bn::{arith::U256, Fq, Fr};

pub(crate) trait IntoFq {
Expand Down
16 changes: 16 additions & 0 deletions tests/integration.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2024, The Horizen Foundation
// Copyright 2021 0KIMS association.
//
// fflonk_verifier is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// fflonk_verifier is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with fflonk_verifier. If not, see <http://www.gnu.org/licenses/>.

use fflonk_verifier::Proof;
use hex_literal::hex;

Expand Down

0 comments on commit ed74fb5

Please sign in to comment.