diff --git a/generate/src/error.rs b/generate/src/error.rs index 615f23c..c1194a8 100644 --- a/generate/src/error.rs +++ b/generate/src/error.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + #![allow(unused)] use std::error::Error as StdError; diff --git a/generate/src/main.rs b/generate/src/main.rs index 80f617c..a2125b5 100644 --- a/generate/src/main.rs +++ b/generate/src/main.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + mod error; mod types; mod utils; diff --git a/generate/src/types/cli.rs b/generate/src/types/cli.rs index 49b7fc3..eb7b4d0 100644 --- a/generate/src/types/cli.rs +++ b/generate/src/types/cli.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use clap::Parser; use serde::Serialize; diff --git a/generate/src/types/mod.rs b/generate/src/types/mod.rs index 8bad8a4..4f2007d 100644 --- a/generate/src/types/mod.rs +++ b/generate/src/types/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod settings; pub mod specification; pub mod cli; \ No newline at end of file diff --git a/generate/src/types/settings.rs b/generate/src/types/settings.rs index dfd9f1e..49c4ac2 100644 --- a/generate/src/types/settings.rs +++ b/generate/src/types/settings.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use std::path::PathBuf; use serde::{Deserialize, Serialize}; use serde_yaml::Value; diff --git a/generate/src/types/specification.rs b/generate/src/types/specification.rs index 88d36fd..f6e311a 100644 --- a/generate/src/types/specification.rs +++ b/generate/src/types/specification.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::utils::generate::generate_jsonpath_from_tagged_values; use serde::{Deserialize, Serialize}; use serde_yaml::Value; diff --git a/generate/src/utils/funcs.rs b/generate/src/utils/funcs.rs index 3dff777..9b73de4 100644 --- a/generate/src/utils/funcs.rs +++ b/generate/src/utils/funcs.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use std::collections::HashSet; use std::path::PathBuf; diff --git a/generate/src/utils/generate.rs b/generate/src/utils/generate.rs index a98cecc..0af23dc 100644 --- a/generate/src/utils/generate.rs +++ b/generate/src/utils/generate.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use serde_yaml::Value; use crate::error::Result; diff --git a/generate/src/utils/mod.rs b/generate/src/utils/mod.rs index 6b1d26e..4bb9fff 100644 --- a/generate/src/utils/mod.rs +++ b/generate/src/utils/mod.rs @@ -1,2 +1,6 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod generate; pub mod funcs; \ No newline at end of file diff --git a/src/disclosure.rs b/src/disclosure.rs index 5c0ea65..795829b 100644 --- a/src/disclosure.rs +++ b/src/disclosure.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::utils::{base64_hash, base64url_encode}; #[cfg(not(feature = "mock_salts"))] use crate::utils::generate_salt; diff --git a/src/error.rs b/src/error.rs index ab8efd8..4dfb737 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub type Result = ::core::result::Result; #[derive(Debug, thiserror::Error, strum::IntoStaticStr)] diff --git a/src/holder.rs b/src/holder.rs index 00367cc..ee7f62b 100644 --- a/src/holder.rs +++ b/src/holder.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{error, SDJWTJson, SDJWTSerializationFormat}; use error::{Error, Result}; use jsonwebtoken::{Algorithm, EncodingKey, Header}; diff --git a/src/issuer.rs b/src/issuer.rs index c156259..d13e616 100644 --- a/src/issuer.rs +++ b/src/issuer.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{error, SDJWTJson}; use error::Result; use std::collections::{HashMap, VecDeque}; diff --git a/src/lib.rs b/src/lib.rs index a77559d..07f9e7e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::error::Error; use crate::utils::{base64_hash, base64url_decode, jwt_payload_decode}; diff --git a/src/utils.rs b/src/utils.rs index 76880a1..cfff8ce 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::error; use crate::error::Error; use crate::error::Error::DeserializationError; diff --git a/src/verifier.rs b/src/verifier.rs index e737212..9b92e9a 100644 --- a/src/verifier.rs +++ b/src/verifier.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::SDJWTSerializationFormat; use crate::error::Error; use crate::error::Result; diff --git a/tests/demos.rs b/tests/demos.rs index 0d2b616..5d5d517 100644 --- a/tests/demos.rs +++ b/tests/demos.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::utils::fixtures::{ ADDRESS_CLAIMS, ADDRESS_ONLY_STRUCTURED_JSONPATH, ADDRESS_ONLY_STRUCTURED_ONE_OPEN_JSONPATH, ARRAYED_CLAIMS, ARRAYED_CLAIMS_JSONPATH, COMPLEX_EIDAS_CLAIMS, COMPLEX_EIDAS_JSONPATH, diff --git a/tests/utils/fixtures.rs b/tests/utils/fixtures.rs index ebbb10e..9d74c40 100644 --- a/tests/utils/fixtures.rs +++ b/tests/utils/fixtures.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub const ISSUER_KEY: &str = "-----BEGIN PRIVATE KEY-----\nMIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgUr2bNKuBPOrAaxsR\nnbSH6hIhmNTxSGXshDSUD1a1y7ihRANCAARvbx3gzBkyPDz7TQIbjF+ef1IsxUwz\nX1KWpmlVv+421F7+c1sLqGk4HUuoVeN8iOoAcE547pJhUEJyf5Asc6pP\n-----END PRIVATE KEY-----\n"; pub const ISSUER_PUBLIC_KEY: &str = "-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEb28d4MwZMjw8+00CG4xfnn9SLMVM\nM19SlqZpVb/uNtRe/nNbC6hpOB1LqFXjfIjqAHBOeO6SYVBCcn+QLHOqTw==\n-----END PUBLIC KEY-----\n"; pub const HOLDER_KEY: &str = "-----BEGIN PRIVATE KEY-----\nMIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg5K5SCos8zf9zRemG\nGUl6yfok+/NiiryNZsvANWMhF+KhRANCAARMIARHX1m+7c4cXiPhbi99JWgcg/Ug\nuKUOWzu8J4Z6Z2cY4llm2TEBh1VilUOIW0iIq7FX7nnAhOreI0/Rdh2U\n-----END PRIVATE KEY-----\n"; diff --git a/tests/utils/mod.rs b/tests/utils/mod.rs index 0559679..4f9d29d 100644 --- a/tests/utils/mod.rs +++ b/tests/utils/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + #![allow(unused)] pub mod fixtures;