================================================================================
TREZOA SANITIZE
Message Sanitization Library
================================================================================
MIGRATION NOTICE
================
This crate has been migrated from the original Solana ecosystem to the Trezoa
Blockchain ecosystem. It provides message sanitization capabilities for the
Trezoa network.
ORIGINAL SOURCE INFORMATION
===========================
Original Crate Name: solana-sanitize
Original Version: 3.0.1
Original Authors: Anza Maintainers <maintainers@anza.xyz>
Original Repository: https://github.com/anza-xyz/solana-sdk
Original License: Apache License 2.0
Original Homepage: https://anza.xyz/
Source Package URL: https://crates.io/crates/solana-sanitize
TREZOA ADAPTATION
=================
Adapted By: Trezoa-team <foundation@trezoa.xyz>
Current Version: 3.2.2
New Repository: https://github.com/Trezoa-team/trezoa-sanitize
New Homepage: https://trezoa.io/
Migration Date: November 3, 2025
CHANGES MADE IN THIS MIGRATION
==============================
1. Package name changed from "solana-sanitize" to "trezoa-sanitize"
2. Library name changed from "solana_sanitize" to "trezoa_sanitize"
3. Version bumped to 3.2.2 for Trezoa ecosystem compatibility
4. Updated all metadata (authors, homepage, repository, documentation)
5. Preserved all original functionality and API compatibility
6. Updated branding from Solana/Anza to Trezoa ecosystem
7. Maintained Apache 2.0 license for full compatibility
FUNCTIONALITY
=============
This library provides a trait for sanitizing values and members of over-the-wire
messages in the Trezoa blockchain ecosystem. It includes:
- SanitizeError enum for error handling
- Sanitize trait for recursive data structure validation
- Index bounds checking
- Value range validation
- Invalid value detection
The sanitization process excludes signature verification checks, which are
handled by separate validation passes in the Trezoa network.
LICENSE AND COPYRIGHT
=====================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License in the LICENSE file or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
ORIGINAL COPYRIGHT NOTICE
=========================
Original work Copyright © Anza Maintainers and contributors
Modifications Copyright © 2025 TRZ Ledger Foundation
All original copyrights and attributions are preserved and acknowledged.
This migration maintains full respect for the original authors' work and
contributions to the open-source blockchain ecosystem.
================================================================================