Skip to content

Commit

Permalink
Update copyright notices and use the copyright ident on every public …
Browse files Browse the repository at this point in the history
…interface file (#224)

* Standardize the usage of SPDX-License-Identifier

SPDX License Identifiers
(https://spdx.dev/learn/handling-license-info/)
are human and computer-readable format  to  communicate licensing
information about some file. Up to now, we used it very sparsely and
with no clear standard. This commit uses SPDX tags on every (and only on)
top-level files (i.e. `lib.rs` and `main.rs`).

* update LICENSE file
  • Loading branch information
Davidson-Souza authored Aug 27, 2024
1 parent 7fbfd90 commit c8bd499
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Davidson Souza
Copyright (c) 2024 The Floresta Project Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 1 addition & 0 deletions crates/floresta-chain/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: MIT

//! # Floresta Chain
//! This crate provides the core validation logic for a full node using libfloresta.
//! It is maintained as a separate crate to allow other projects to build on it,
Expand Down
3 changes: 1 addition & 2 deletions crates/floresta-chain/src/pruned_utreexo/chainstore.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Written in 2022 by Davidson Souza

//! This is a basic kv database that stores all metadata about our blockchain and utreexo
//! state.
use bitcoin::block::Header as BlockHeader;
use bitcoin::consensus::deserialize;
use bitcoin::consensus::serialize;
Expand Down
2 changes: 2 additions & 0 deletions crates/floresta-common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

#![no_std]
use bitcoin::hashes::sha256;
use bitcoin::hashes::Hash;
Expand Down
2 changes: 0 additions & 2 deletions crates/floresta-compact-filters/src/bip158.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// SPDX-License-Identifier: CC0-1.0

// This module was largely copied from https://github.com/rust-bitcoin/murmel/blob/master/src/blockfilter.rs
// on 11. June 2019 which is licensed under Apache, that file specifically
// was written entirely by Tamas Blummer, who is re-licensing its contents here as CC0.
Expand Down
2 changes: 2 additions & 0 deletions crates/floresta-electrum/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

use serde::Deserialize;
use serde::Serialize;

Expand Down
2 changes: 2 additions & 0 deletions crates/floresta-watch-only/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

#![cfg_attr(feature = "no-std", no_std)]
use core::cmp::Ordering;
use core::fmt::Debug;
Expand Down
1 change: 1 addition & 0 deletions crates/floresta-wire/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: MIT

//! # Floresta Wire
//! This crate provides the core networking logic for a full node using libfloresta,
//! including the P2P network and the mempool. You can easily integrate it with any
Expand Down
2 changes: 2 additions & 0 deletions florestad/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

mod config_file;
mod error;
mod florestad;
Expand Down
3 changes: 1 addition & 2 deletions florestad/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Written in 2022 by Davidson Souza.
// SPDX-License-Identifier: CC0-1.0
// SPDX-License-Identifier: MIT

//! This is a modular-(ish) utreexo powered wallet backend and fully validating node, it's
//! developed as an experiment to showcase utreexo. This wallet also comes with an Electrum
Expand Down

0 comments on commit c8bd499

Please sign in to comment.