f82546fdb1
- Add LICENSE-APACHE (Apache License 2.0 full text) - Add LICENSE-GPL3 (GNU GPL 3.0 full text) - Add NOTICE file with full attribution to original Polkadot SDK, Parity Technologies (UK) Ltd., and Web3 Foundation, documenting all significant changes made as required by Apache-2.0 Section 4(b) - Update README License section to accurately reflect dual licensing and link to NOTICE file
328 lines
14 KiB
Markdown
328 lines
14 KiB
Markdown
# Pezkuwi SDK — Sovereign Blockchain Infrastructure
|
|
|
|
**Developed and maintained by Kurdistan Tech Institute**
|
|
|
|
Pezkuwi SDK is a fully independent blockchain development framework, providing all the tools needed to build sovereign, interoperable blockchain networks for stateless nations and distributed communities.
|
|
|
|
---
|
|
|
|
## Origin
|
|
|
|
Pezkuwi SDK originated as a fork of Polkadot SDK (stable2512). It has since been completely rebranded and restructured as an independent project under Kurdistan Tech Institute stewardship. All crate names, dependencies, and documentation have been updated to reflect this independence.
|
|
|
|
---
|
|
|
|
## Architecture
|
|
|
|
```
|
|
┌─────────────────────────────────────────────────────────────┐
|
|
│ Pezkuwi SDK Ecosystem │
|
|
├─────────────────────────────────────────────────────────────┤
|
|
│ │
|
|
│ ┌─────────────────────┐ ┌─────────────────────────┐ │
|
|
│ │ Bizinikiwi │ │ PezCumulus │ │
|
|
│ │ (Core Framework) │ │ (TeyrChain SDK) │ │
|
|
│ │ │ │ │ │
|
|
│ │ • Runtime Engine │ │ • Collator Framework │ │
|
|
│ │ • Consensus │ │ • XCM Integration │ │
|
|
│ │ • Networking │ │ • Relay Chain Bridge │ │
|
|
│ └─────────────────────┘ └─────────────────────────┘ │
|
|
│ │ │ │
|
|
│ └──────────┬───────────────┘ │
|
|
│ │ │
|
|
│ ┌──────────▼───────────┐ │
|
|
│ │ PezkuwiChain │ │
|
|
│ │ (Reference Impl) │ │
|
|
│ │ • TeyrChain │ │
|
|
│ │ • Zagros Runtime │ │
|
|
│ └──────────────────────┘ │
|
|
└─────────────────────────────────────────────────────────────┘
|
|
```
|
|
|
|
---
|
|
|
|
## Crate Naming Convention
|
|
|
|
Pezkuwi SDK uses a distinct naming scheme to ensure complete independence:
|
|
|
|
| Component | Prefix | Example |
|
|
| --- | --- | --- |
|
|
| Core Framework | `bizinikiwi-` | `bizinikiwi-runtime` |
|
|
| TeyrChain SDK | `pezcumulus-` | `pezcumulus-client` |
|
|
| Client Crates | `pezsc-` | `pezsc-network`, `pezsc-consensus` |
|
|
| Primitives | `pezsp-` | `pezsp-runtime`, `pezsp-core` |
|
|
| Framework | `pezframe-` | `pezframe-support`, `pezframe-system` |
|
|
| Pallets | `pezpallet-` | `pezpallet-balances`, `pezpallet-staking` |
|
|
| Staging | `pezstaging-` | `pezstaging-xcm` |
|
|
|
|
---
|
|
|
|
## PezkuwiChain — Reference Implementation
|
|
|
|
PezkuwiChain is the flagship blockchain built on Pezkuwi SDK, designed for Kurdish digital sovereignty.
|
|
|
|
### Token Economics
|
|
|
|
**HEZ — Native Gas Token**
|
|
- Purpose: Transaction fees, staking, network security
|
|
- Model: Inflationary with staking rewards
|
|
- Distribution: 85% staking rewards, 15% treasury
|
|
|
|
**PEZ — Governance Token**
|
|
- Total Supply: 5,000,000,000 PEZ
|
|
- Model: Fixed supply with halving cycles
|
|
- Access: Citizenship-gated rewards
|
|
|
|
### Custom Pallets
|
|
|
|
| Pallet | Purpose |
|
|
| --- | --- |
|
|
| `pezpallet-presale` | Multi-round token launches with vesting |
|
|
| `pezpallet-identity-kyc` | Decentralized identity verification |
|
|
| `pezpallet-welati` | Democratic governance and voting |
|
|
| `pezpallet-perwerde` | Educational platform and certificates |
|
|
| `pezpallet-pez-treasury` | Community treasury with halving |
|
|
| `pezpallet-pez-rewards` | Trust-based staking rewards |
|
|
| `pezpallet-validator-pool` | Validator participation |
|
|
| `pezpallet-staking-score` | Reputation-based metrics |
|
|
| `pezpallet-trust` | Peer-to-peer trust system |
|
|
| `pezpallet-referral` | Referral incentives |
|
|
| `pezpallet-tiki` | NFT-based citizenship |
|
|
| `pezpallet-token-wrapper` | Asset wrapping |
|
|
|
|
### TNPoS Consensus
|
|
|
|
Trust-enhanced Nominated Proof-of-Stake combines:
|
|
- Economic Stake (HEZ)
|
|
- Social Trust metrics
|
|
- Performance scoring
|
|
|
|
---
|
|
|
|
## TNPoS Consensus — World's First Trust-Augmented PoS
|
|
|
|
**Trust-enhanced Nominated Proof-of-Stake** combines:
|
|
- **Economic Stake**: Traditional staking (HEZ)
|
|
- **Social Trust**: Peer endorsements, citizenship level, governance participation
|
|
- **Performance Metrics**: Uptime, finality participation, historical behavior
|
|
|
|
**Key Innovations**:
|
|
- First implementation of social trust in consensus (academic contribution)
|
|
- Parliamentary NFT System: 201 non-transferable governance seats
|
|
- Sybil-resistant via citizenship verification (Tiki pallet)
|
|
- Multi-dimensional validator scoring
|
|
|
|
---
|
|
|
|
## Cross-Chain Integration (XCM v5)
|
|
|
|
```
|
|
Polkadot Asset Hub (USDT)
|
|
│
|
|
│ XCM Reserve Transfer
|
|
▼
|
|
TeyrChain (Parachain)
|
|
│
|
|
├─► Presale contributions
|
|
├─► DEX trading (future)
|
|
└─► Withdraw back to Asset Hub
|
|
```
|
|
|
|
- Full XCM v5 implementation
|
|
- Reserve-backed wUSDT bridge
|
|
- HRMP channels for system teyrchains
|
|
- Future bridges: wETH, wBTC, Ethereum, Tron, BSC
|
|
|
|
---
|
|
|
|
## Network Roadmap
|
|
|
|
| Stage | Validators | Status |
|
|
| --- | --- | --- |
|
|
| Dev Mode | 1 | ✅ |
|
|
| Local Testnet | 2 | ✅ |
|
|
| **Alfa Testnet** | 4 | ✅ |
|
|
| Beta Testnet | 8 | Q1 2026 |
|
|
| Staging | 20 | Q1 2026 |
|
|
| **Mainnet** | 100 | Q2 2026 |
|
|
|
|
---
|
|
|
|
## Multi-Nation Platform Vision
|
|
|
|
PezkuwiChain is designed to host **multiple digital nations** simultaneously:
|
|
|
|
| Nation Type | Example | Target Population |
|
|
| --- | --- | --- |
|
|
| **Ethnic** | Kurdish (PEZ) | 40M+ globally |
|
|
| **Ethnic** | Catalan | 10M+ |
|
|
| **Ethnic** | Tibetan | 6M+ diaspora |
|
|
| **Ethnic** | Uyghur | 12M+ |
|
|
| **Ethnic** | Basque | 3M+ |
|
|
| **Cultural** | Armenian diaspora | 8M+ |
|
|
| **Cultural** | Romani | 10M+ worldwide |
|
|
| **Indigenous** | Various tribes | Land rights, heritage |
|
|
|
|
**Shared Infrastructure**: All nations use HEZ for transactions
|
|
**Nation-Specific Tokens**: Each group issues citizenship-gated tokens (PEZ model)
|
|
**Interoperable Governance**: Cross-nation commerce, diplomacy on single blockchain
|
|
|
|
---
|
|
|
|
## Use Cases
|
|
|
|
1. **Digital Governance** — Parliamentary NFTs, on-chain voting, treasury management
|
|
2. **Token Launches** — Compliant multi-round presales with vesting
|
|
3. **Education** — Blockchain-verified certificates (Perwerde)
|
|
4. **Identity** — Self-sovereign KYC and citizenship verification
|
|
5. **Cross-Chain Finance** — wUSDT bridge, DeFi primitives
|
|
6. **Cultural Preservation** — Language, heritage, oral tradition on-chain
|
|
7. **Remittance** — Low-cost diaspora→homeland transfers ($20B+ Kurdish annual flows)
|
|
|
|
---
|
|
|
|
## Quick Start
|
|
|
|
```bash
|
|
# Clone repository
|
|
git clone https://github.com/pezkuwichain/pezkuwi-sdk.git
|
|
cd pezkuwi-sdk
|
|
|
|
# Build release
|
|
cargo build --release
|
|
|
|
# Build with benchmarks
|
|
cargo build --release --features runtime-benchmarks
|
|
|
|
# Run local testnet
|
|
./target/release/pezkuwi-node --dev
|
|
```
|
|
|
|
---
|
|
|
|
## Links
|
|
|
|
| Resource | URL |
|
|
| --- | --- |
|
|
| Website | [pezkuwichain.io](https://pezkuwichain.io) |
|
|
| App | [pezkuwichain.app](https://pezkuwichain.app) |
|
|
| Explorer | [explorer.pezkuwichain.io](https://explorer.pezkuwichain.io) |
|
|
| Documentation | [docs.pezkuwichain.io](https://docs.pezkuwichain.io) |
|
|
| RPC Endpoint | `wss://rpc.pezkuwichain.io` |
|
|
|
|
## Community
|
|
|
|
| Platform | Link |
|
|
| --- | --- |
|
|
| Telegram | [@pezkuwichain](https://t.me/pezkuwichain) |
|
|
| Discord | [discord.gg/pezkuwichain](https://discord.gg/pezkuwichain) |
|
|
| Twitter | [@pezkuwichain](https://twitter.com/pezkuwichain) |
|
|
| GitHub | [github.com/pezkuwichain](https://github.com/pezkuwichain) |
|
|
| Medium | [@pezkuwichain](https://medium.com/@pezkuwichain) |
|
|
| Facebook | [PezkuwiChain](https://www.facebook.com/profile.php?id=61582484611719) |
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|

|
|

|
|
|
|
# Pezkuwi SDK
|
|
|
|
 
|
|
|
|
<!-- markdownlint-disable-next-line MD013 -->
|
|
[](https://pezkuwichain.app/community)   
|
|
|
|
> The Pezkuwi SDK repository provides all the components needed to start building on the
|
|
> [PezkuwiChain](https://pezkuwichain.app/) network, a multi-chain blockchain platform that enables
|
|
> different blockchains to interoperate and share information in a secure and scalable way.
|
|
|
|
</div>
|
|
|
|
## Quickstart
|
|
|
|
If you want to get an example node running quickly you can execute the following getting started script:
|
|
|
|
```bash
|
|
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/pezkuwichain/pezkuwi-sdk/master/scripts/getting-started.sh | bash
|
|
```
|
|
|
|
## Building
|
|
|
|
In order to build this project you need to install some dependencies, follow the instructions in [this guide](https://docs.pezkuwichain.io/develop/teyrchains/install-pezkuwi-sdk).
|
|
|
|
## Documentation
|
|
|
|
- [Pezkuwi Documentation Portal](https://docs.pezkuwichain.io)
|
|
- [rust-docs](https://pezkuwichain.github.io/pezkuwi-sdk/master/pezkuwi_sdk_docs/index.html): Where we keep track of the API docs of our Rust crates. Includes:
|
|
- [Introduction](https://pezkuwichain.github.io/pezkuwi-sdk/master/pezkuwi_sdk_docs/pezkuwi_sdk/index.html) to each component of the Pezkuwi SDK: Bizinikiwi, FRAME, PezCumulus, and XCM
|
|
- [Guides](https://pezkuwichain.github.io/pezkuwi-sdk/master/pezkuwi_sdk_docs/guides/index.html), namely how to build your first FRAME pallet
|
|
- [Templates](https://pezkuwichain.github.io/pezkuwi-sdk/master/pezkuwi_sdk_docs/pezkuwi_sdk/templates/index.html) for starting a new project.
|
|
- [External Resources](https://pezkuwichain.github.io/pezkuwi-sdk/master/pezkuwi_sdk_docs/external_resources/index.html)
|
|
- Have a question? You can ask in the Pezkuwi SDK Developers Chat.
|
|
- [Telegram](https://t.me/DKSPezkuwiChain)
|
|
- [Matrix](https://matrix.to/#/#pezkuwidevs:matrix.org)
|
|
- [Discord](https://discord.gg/Y3VyEC6h8W)
|
|
- [Pezkuwi StackExchange](https://pezkuwichain.io/forum)
|
|
|
|
## Releases
|
|
|
|
<!-- markdownlint-disable-next-line MD013 -->
|
|
 
|
|
|
|
The Pezkuwi SDK is released every three months as a `Pezkuwi stableYYMM` release. Each stable release is supported for one year with patches. See the next upcoming versions in the [Release Registry](https://github.com/pezkuwichain/release-registry/) and more docs in [RELEASE.md](./docs/RELEASE.md).
|
|
|
|
You can use [`psvm`](https://github.com/pezkuwichain/psvm) to update all dependencies to a specific version without needing to manually select the correct version for each crate.
|
|
|
|
## Tooling
|
|
|
|
[Pezkuwi SDK Version Manager](https://github.com/pezkuwichain/psvm): A simple tool to manage and update the Pezkuwi SDK dependencies in any Cargo.toml file. It will automatically update the Pezkuwi SDK dependencies to their correct crates.io version.
|
|
|
|
## Security
|
|
|
|
The security policy and procedures can be found in [docs/contributor/SECURITY.md](./docs/contributor/SECURITY.md).
|
|
|
|
## Contributing & Code of Conduct
|
|
|
|
Ensure you follow our [contribution guidelines](./docs/contributor/CONTRIBUTING.md). In every interaction and contribution, this project adheres to the [Contributor Covenant Code of Conduct](./docs/contributor/CODE_OF_CONDUCT.md).
|
|
|
|
### Ready to Contribute?
|
|
|
|
Take a look at the issues labeled with [`mentor`](https://github.com/pezkuwichain/pezkuwi-sdk/labels/C1-mentor) (or alternatively [this](https://mentor.tasty.limo/) page, created by one of the maintainers) label to get started! We always recognize valuable contributions by proposing an on-chain tip to the PezkuwiChain network as a token of our appreciation.
|
|
|
|
## Pezkuwi Fellowship
|
|
|
|
Development in this repo usually goes hand in hand with the `fellowship` organization. In short, this repository provides all the SDK pieces needed to build both PezkuwiChain and its teyrchains. But, the actual PezkuwiChain runtime lives in the `fellowship/runtimes` repository. Read more about the fellowship, this separation, and the RFC process in the [Pezkuwi Fellows repository](https://github.com/pezkuwichain/pezkuwi-fellows).
|
|
|
|
## History
|
|
|
|
This repository is the amalgamation of 3 separate repositories that used to make up Pezkuwi SDK, namely Bizinikiwi, Pezkuwi and PezCumulus. Read more about the SDK in the [Pezkuwi SDK Documentation](https://docs.pezkuwichain.io/pezkuwi_sdk_docs/index.html).
|
|
|
|
---
|
|
|
|
## License
|
|
|
|
Pezkuwi SDK is a derivative work based on [Polkadot SDK](https://github.com/paritytech/polkadot-sdk)
|
|
by [Parity Technologies (UK) Ltd.](https://www.parity.io), used under Apache-2.0 and GPL-3.0-only.
|
|
|
|
Individual crates in this repository are licensed under either:
|
|
|
|
- **Apache License, Version 2.0** — see [LICENSE-APACHE](./LICENSE-APACHE)
|
|
- **GNU General Public License, Version 3.0** — see [LICENSE-GPL3](./LICENSE-GPL3)
|
|
|
|
See each crate's `Cargo.toml` for the applicable license.
|
|
|
|
For full attribution, significant changes, and third-party component notices, see [NOTICE](./NOTICE).
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|
**Kurdistan Tech Institute**
|
|
|
|
*Building sovereign infrastructure for stateless nations*
|
|
|
|
</div>
|