Skip to content

Commit

Permalink
Merge pull request #50 from dusk-network/copyright
Browse files Browse the repository at this point in the history
Add copyright headers to .rs files
  • Loading branch information
vlopes11 authored Aug 28, 2020
2 parents b8fda59 + 0fce664 commit 0d424ea
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cipher/cipher.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
use dusk_plonk::jubjub::AffinePoint;
use dusk_plonk::prelude::*;
use hades252::{ScalarStrategy, Strategy, WIDTH};
Expand Down
2 changes: 2 additions & 0 deletions src/cipher/error.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
use thiserror::Error;

/// Error definitions for the decription process
Expand Down
2 changes: 2 additions & 0 deletions src/cipher/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
pub use cipher::PoseidonCipher;
pub use error::CipherError;

Expand Down
2 changes: 2 additions & 0 deletions src/cipher/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
use super::{
PoseidonCipher, CIPHER_SIZE, ENCRYPTED_DATA_SIZE, MESSAGE_CAPACITY,
};
Expand Down
2 changes: 2 additions & 0 deletions src/cipher/zk.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
use super::{PoseidonCipher, CIPHER_SIZE, MESSAGE_CAPACITY};
use dusk_plonk::constraint_system::ecc::Point;
use dusk_plonk::prelude::*;
Expand Down
2 changes: 2 additions & 0 deletions src/hashing_utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
pub(crate) mod poseidon_annotation;
pub(crate) mod scalar_storage;
2 changes: 2 additions & 0 deletions src/hashing_utils/poseidon_annotation.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
//! Helpers for kelvin hashing & storing trait implementations
use super::scalar_storage::StorageScalar;
use crate::merkle_lvl_hash::hash;
Expand Down
2 changes: 2 additions & 0 deletions src/hashing_utils/scalar_storage.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
//! This module defines a Wrap-up over the dusk-bls12_381 to define it's kelvin
//! storage traits
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
//! ![Build Status](https://travis-ci.com/dusk-network/Poseidon252.svg?branch=master)](https://travis-ci.com/dusk-network/Poseidon252)
//! ![Repository](https://dusk-network.github.io/Poseidon252/repo-badge.svg)](https://github.com/dusk-network/Poseidon252)
//! ![Documentation](https://dusk-network.github.io/Poseidon252/badge.svg)](https://dusk-network.github.io/Poseidon252/index.html)
Expand Down
2 changes: 2 additions & 0 deletions src/merkle_lvl_hash/hash.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
//! The Merkle Level Hashing is a technique that Poseidon is optimized-by-design
//! to perform.
//!
Expand Down
2 changes: 2 additions & 0 deletions src/merkle_lvl_hash/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
//! Poseidon hash implementation
pub(crate) mod hash;
2 changes: 2 additions & 0 deletions src/merkle_proof/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
pub(crate) mod poseidon_branch;
pub(crate) mod proof;

Expand Down
2 changes: 2 additions & 0 deletions src/merkle_proof/poseidon_branch.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
//! Definitions of the merkle tree structure seen in Poseidon.
use crate::hashing_utils::scalar_storage::StorageScalar;
use crate::merkle_lvl_hash::hash;
Expand Down
2 changes: 2 additions & 0 deletions src/merkle_proof/proof.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
//! Merkle-tree hashing functions using Poseidon252
//!
use super::poseidon_branch::PoseidonBranch;
Expand Down
2 changes: 2 additions & 0 deletions src/sponge/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
pub(crate) mod pad;
pub mod sponge;
2 changes: 2 additions & 0 deletions src/sponge/pad.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
//! Padding support for sponge hash
//!
Expand Down
2 changes: 2 additions & 0 deletions src/sponge/sponge.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
//! The `pad` module implements the Sponge's padding algorithm
use super::pad::*;

Expand Down
2 changes: 2 additions & 0 deletions src/tree/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) DUSK NETWORK. All rights reserved.
// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details.”
use std::io;

use dusk_plonk::bls12_381::Scalar as BlsScalar;
Expand Down

0 comments on commit 0d424ea

Please sign in to comment.