Skip to content

Commit

Permalink
licence
Browse files Browse the repository at this point in the history
  • Loading branch information
Ad96el committed Feb 6, 2025
1 parent b963900 commit bde1241
Show file tree
Hide file tree
Showing 145 changed files with 786 additions and 146 deletions.
6 changes: 4 additions & 2 deletions .maintain/licence.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
'dip-template',
'nodes',
'runtime-api',
'zombienet'
'zombienet',
"crates",
"dip-template",
]

# Define the file extensions to update
file_extensions = ['.rs', '.md']
file_extensions = ['.rs']

# Read the content of the HEADER-GPL file
with open(header_file_path, 'r') as header_file:
Expand Down
16 changes: 0 additions & 16 deletions chopsticks/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

# KILT Chopsticks utilities

Expand Down
18 changes: 18 additions & 0 deletions crates/assets/src/asset.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

// Exported types. This will always only re-export the latest version by
// default.
pub use v1::*;
Expand Down
18 changes: 18 additions & 0 deletions crates/assets/src/chain.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

// Exported types. This will always only re-export the latest version by
// default.
pub use v1::*;
Expand Down
18 changes: 18 additions & 0 deletions crates/assets/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

use frame_support::sp_runtime::RuntimeDebug;

// Only re-export the main enum, with the variant values still being namespaced
Expand Down
18 changes: 18 additions & 0 deletions crates/assets/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

//! Library to parse the raw byte vectors into supported Asset DIDs, according
//! to the spec.
//!
Expand Down
18 changes: 18 additions & 0 deletions crates/assets/src/v1.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

use hex_literal::hex;
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
use scale_info::TypeInfo;
Expand Down
18 changes: 18 additions & 0 deletions crates/kilt-dip-primitives/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

//! Collection of support traits, types, and functions for integrating KILT as
//! an identity provider following the Decentralized Identity Provider (DIP)
//! protocol.
Expand Down
18 changes: 18 additions & 0 deletions crates/kilt-dip-primitives/src/merkle_proofs/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

pub mod v0;

pub mod latest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

use did::{
did_details::{DidPublicKey, DidPublicKeyDetails},
DidSignature,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

mod dip_revealed_details_and_unverified_did_signature {
use frame_support::{assert_err, assert_ok};

Expand Down
18 changes: 18 additions & 0 deletions crates/kilt-dip-primitives/src/merkle_proofs/v0/error.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

use scale_info::TypeInfo;

use crate::state_proofs::MerkleProofError;
Expand Down
18 changes: 18 additions & 0 deletions crates/kilt-dip-primitives/src/merkle_proofs/v0/input_common.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

use did::DidSignature;
use parity_scale_codec::{Decode, Encode};
use scale_info::TypeInfo;
Expand Down
18 changes: 18 additions & 0 deletions crates/kilt-dip-primitives/src/merkle_proofs/v0/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

//! Module to deal with cross-chain Merkle proof as generated by the KILT chain.
mod dip_subject_state;
Expand Down
18 changes: 18 additions & 0 deletions crates/kilt-dip-primitives/src/merkle_proofs/v0/output_common.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

use did::{did_details::DidPublicKeyDetails, DidVerificationKeyRelationship};
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
use scale_info::TypeInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

use frame_support::ensure;
use pallet_dip_provider::IdentityCommitmentOf;
use parity_scale_codec::{Decode, Encode};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

// These test cases are, for now, the same as the ones in
// [`super::relay_state::relay_dip_did_proof_with_verified_relay_state_root`],
// since the functions in there are a wrapper for functions in here.
Expand Down
18 changes: 18 additions & 0 deletions crates/kilt-dip-primitives/src/merkle_proofs/v0/relay_state/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// KILT Blockchain – <https://kilt.io>
// Copyright (C) 2025, KILT Foundation

// The KILT Blockchain is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The KILT Blockchain is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// If you feel like getting in touch with us, you can do so at <[email protected]>

use parity_scale_codec::{Codec, Decode, Encode};
use scale_info::TypeInfo;
use sp_core::U256;
Expand Down
Loading

0 comments on commit bde1241

Please sign in to comment.