From c3eed252a85a0d9485fb894f4ee0b57754cf0466 Mon Sep 17 00:00:00 2001 From: Yasir Date: Mon, 18 Nov 2024 19:20:53 +0300 Subject: [PATCH] chore: add license template and headers to the files --- .license_template | 2 ++ LICENCE => LICENSE | 0 src/error.rs | 3 +++ src/lib.rs | 3 +++ src/signature_scheme.rs | 3 +++ src/signer.rs | 3 +++ src/storage.rs | 3 +++ 7 files changed, 17 insertions(+) create mode 100644 .license_template rename LICENCE => LICENSE (100%) diff --git a/.license_template b/.license_template new file mode 100644 index 0000000..4e49220 --- /dev/null +++ b/.license_template @@ -0,0 +1,2 @@ +// Copyright {20\d{2}(-20\d{2})?} IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 \ No newline at end of file diff --git a/LICENCE b/LICENSE similarity index 100% rename from LICENCE rename to LICENSE diff --git a/src/error.rs b/src/error.rs index 58772b2..7fb2167 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,3 +1,6 @@ +// Copyright 2020-2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + use thiserror::Error; pub type Result = std::result::Result; diff --git a/src/lib.rs b/src/lib.rs index e7c90c9..39f6ffc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright 2020-2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + mod error; mod signature_scheme; mod signer; diff --git a/src/signature_scheme.rs b/src/signature_scheme.rs index 7c71d7b..60d3fb5 100644 --- a/src/signature_scheme.rs +++ b/src/signature_scheme.rs @@ -1,3 +1,6 @@ +// Copyright 2020-2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + /// [`SignatureScheme`] is a trait that defines the public key and signature types. pub trait SignatureScheme { type PublicKey; diff --git a/src/signer.rs b/src/signer.rs index 6b43612..e1edb21 100644 --- a/src/signer.rs +++ b/src/signer.rs @@ -1,3 +1,6 @@ +// Copyright 2020-2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + use async_trait::async_trait; use crate::Result; diff --git a/src/storage.rs b/src/storage.rs index 5d37066..d84917e 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -1,3 +1,6 @@ +// Copyright 2020-2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + use async_trait::async_trait; use crate::signature_scheme::SignatureScheme;