Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MIT license #204

Merged
merged 1 commit into from
Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
19 changes: 19 additions & 0 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 🌲 Forest
![](https://github.com/ChainSafe/forest/workflows/Rust%20CI/badge.svg?branch=master)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![](https://img.shields.io/twitter/follow/espadrine.svg?label=Follow&style=social)](https://twitter.com/chainsafeth)


Expand Down Expand Up @@ -42,4 +43,4 @@ https://chainsafe.github.io/forest/
- Have questions? Say hi on [Discord](https://discord.gg/Q6A3YA2)!

## License
Forest is licensed under the Apache License 2.0.
Forest is dual licensed under [MIT](https://github.com/ChainSafe/forest/blob/master/LICENSE-MIT) + [Apache 2.0](https://github.com/ChainSafe/forest/blob/master/LICENSE-APACHE).
2 changes: 1 addition & 1 deletion blockchain/blocks/src/block.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

#![allow(dead_code)]

Expand Down
2 changes: 1 addition & 1 deletion blockchain/blocks/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use std::fmt;

Expand Down
2 changes: 1 addition & 1 deletion blockchain/blocks/src/header.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use super::{EPostProof, Ticket, TipSetKeys, TxMeta};
use address::Address;
Expand Down
2 changes: 1 addition & 1 deletion blockchain/blocks/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

mod block;
mod errors;
Expand Down
2 changes: 1 addition & 1 deletion blockchain/blocks/src/ticket.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use crypto::VRFResult;
use encoding::{
Expand Down
2 changes: 1 addition & 1 deletion blockchain/blocks/src/tipset.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

#![allow(unused_variables)]
#![allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion blockchain/chain/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

mod store;

Expand Down
2 changes: 1 addition & 1 deletion blockchain/chain/src/store/chain_store.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use super::{Error, TipIndex, TipSetMetadata};
use blocks::{BlockHeader, Tipset};
Expand Down
2 changes: 1 addition & 1 deletion blockchain/chain/src/store/errors.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use blocks::Error as BlkErr;
use cid::Error as CidErr;
Expand Down
2 changes: 1 addition & 1 deletion blockchain/chain/src/store/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

mod chain_store;
mod errors;
Expand Down
2 changes: 1 addition & 1 deletion blockchain/chain/src/store/tip_index.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use super::errors::Error;
use blocks::{TipSetKeys, Tipset};
Expand Down
2 changes: 1 addition & 1 deletion blockchain/chain_sync/src/block_msg.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use blocks::TipSetKeys;
use libp2p::PeerId;
Expand Down
2 changes: 1 addition & 1 deletion blockchain/chain_sync/src/block_proposer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use super::BlockMsg;
use std::io;
Expand Down
2 changes: 1 addition & 1 deletion blockchain/chain_sync/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

mod block_msg;
mod block_proposer;
Expand Down
2 changes: 1 addition & 1 deletion blockchain/raw_block/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

mod raw_block;

Expand Down
2 changes: 1 addition & 1 deletion blockchain/raw_block/src/raw_block.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use cid::{Cid, Codec, Error, Version};
use encoding::{Cbor, Error as EncodingError};
Expand Down
2 changes: 1 addition & 1 deletion blockchain/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

pub mod message_pool;
2 changes: 1 addition & 1 deletion blockchain/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

fn main() {}
2 changes: 1 addition & 1 deletion blockchain/src/message_pool/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

mod pool;

Expand Down
2 changes: 1 addition & 1 deletion blockchain/src/message_pool/pool.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use message::SignedMessage;

Expand Down
2 changes: 1 addition & 1 deletion blockchain/src/storage_consensus/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

2 changes: 1 addition & 1 deletion blockchain/sync_manager/src/bucket.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use blocks::Tipset;

Expand Down
2 changes: 1 addition & 1 deletion blockchain/sync_manager/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use blocks::Error as BlkErr;
use chain::Error as StoreErr;
Expand Down
2 changes: 1 addition & 1 deletion blockchain/sync_manager/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

mod bucket;
mod errors;
Expand Down
2 changes: 1 addition & 1 deletion blockchain/sync_manager/src/manager.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use super::bucket::SyncBucketSet;
use blocks::Tipset;
Expand Down
2 changes: 1 addition & 1 deletion blockchain/sync_manager/src/sync.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

#![allow(dead_code)]

Expand Down
2 changes: 1 addition & 1 deletion blockchain/sync_manager/tests/manager_test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use blocks::{BlockHeader, Tipset};
use cid::Cid;
Expand Down
3 changes: 0 additions & 3 deletions copyright.txt

This file was deleted.

2 changes: 1 addition & 1 deletion crypto/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use address::Error as AddressError;
use encoding::Error as EncodingError;
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

mod errors;
mod signature;
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/signature.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use super::errors::Error;
use address::{Address, Protocol};
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/signer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use super::signature::Signature;
use address::Address;
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/vrf.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use crate::signature::{verify_bls_sig, Signature, BLS_SIG_LEN};
use bls_signatures::{Serialize as BlsSerialize, Signature as BLSSignature};
Expand Down
2 changes: 1 addition & 1 deletion encoding/src/cbor.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use super::errors::Error;
use crate::{ser, to_vec};
Expand Down
2 changes: 1 addition & 1 deletion encoding/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use serde_cbor::error::Error as CborError;
use std::fmt;
Expand Down
2 changes: 1 addition & 1 deletion encoding/src/hash.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use blake2b_simd::Params;

Expand Down
2 changes: 1 addition & 1 deletion encoding/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

mod cbor;
mod errors;
Expand Down
2 changes: 1 addition & 1 deletion ipld/cid/src/codec.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use crate::Error;

Expand Down
2 changes: 1 addition & 1 deletion ipld/cid/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use encoding::Error as EncodingError;
use multibase;
Expand Down
2 changes: 1 addition & 1 deletion ipld/cid/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

mod codec;
mod error;
Expand Down
2 changes: 1 addition & 1 deletion ipld/cid/src/to_cid.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use crate::{Cid, Codec, Error, Version};
use integer_encoding::VarIntReader;
Expand Down
2 changes: 1 addition & 1 deletion ipld/cid/src/version.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use crate::Error;

Expand Down
2 changes: 1 addition & 1 deletion ipld/cid/tests/base_cid_tests.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use encoding::{from_slice, to_vec, Cbor};
use forest_cid::{Cid, Codec, Error, Prefix, Version};
Expand Down
2 changes: 1 addition & 1 deletion ipld/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use cid::Cid;
use encoding::de;
Expand Down
2 changes: 1 addition & 1 deletion ipld/tests/ipld_test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use cid::Cid;
use encoding::{from_slice, to_vec};
Expand Down
2 changes: 1 addition & 1 deletion node/clock/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use chrono::{DateTime, NaiveDateTime, SecondsFormat, Utc};
use serde::{Deserialize, Serialize};
Expand Down
2 changes: 1 addition & 1 deletion node/clock/tests/clock_test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use clock::ChainEpochClock;

Expand Down
2 changes: 1 addition & 1 deletion node/db/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use blocks::Error as BlkErr;
use encoding::Error as EncErr;
Expand Down
2 changes: 1 addition & 1 deletion node/db/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

mod errors;
mod memory;
Expand Down
2 changes: 1 addition & 1 deletion node/db/src/memory.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use super::Error;
use super::{DatabaseService, Read, Write};
Expand Down
2 changes: 1 addition & 1 deletion node/db/src/rocks.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

use super::errors::Error;
use super::{DatabaseService, Read, Write};
Expand Down
2 changes: 1 addition & 1 deletion node/db/tests/db_utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

// Taken from
// https://github.com/rust-rocksdb/rust-rocksdb/blob/master/tests/util/mod.rs
Expand Down
2 changes: 1 addition & 1 deletion node/db/tests/mem_test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0, MIT

mod subtests;

Expand Down
Loading