On general-purpose chains, compliance is a front-end filter that application code can bypass. On Shamwari, regulatory status is a consensus primitive — enforced by every node, every block, for every transaction. There is no configuration, no middleware, and no operator that can circumvent it.
The TotemApproval system implements a full securities-regulator workflow as first-class protocol primitives. Regulators interact directly with the blockchain through signed transactions. Every state transition is atomic, immutable, and independently verifiable by any counterparty in real time.
A single transaction type handles all approval state transitions. The attachment encodes the target state and an optional expiration height. Only transactions signed by the designated Securities Regulator account ID are accepted — validated at consensus before processing.
When an APPROVED totem is traded and the transaction executes, capital gains tax is automatically calculated and withheld in the same atomic operation. The tax is credited to the Tax Collector account before net proceeds reach the seller.
Every jurisdiction BetaChain is created with five designated regulatory authority accounts embedded in the genesis block. Their account IDs are hardcoded into the chain configuration and validated at the consensus layer. No transaction, no admin, and no upgrade can change them after genesis.
Shamwari embeds KYC and AML controls directly into the transaction validation pipeline. No application-layer middleware, no operator-dependent enforcement. Permission status is blockchain state — consistent, permanent, and independently verifiable by any node.
GRANT_PERMISSION tx + EncryptedData payloadPermissionPolicy.check(sender) → CHAIN_USER ✓BLOCKED_CHAIN_USER → instant freezeREVOKE_PERMISSION → cascades to all granted usersShamwari's on-chain taxation is the most comprehensive protocol-native tax system deployed on any blockchain. Tax is withheld at source, atomically with the triggering transaction, credited to the designated Tax Collector account — without off-chain reporting, operator cooperation, or periodic reconciliation.
Every tax rate is configured in basis points (1 bps = 0.01%). Formula: taxAmount = (amount × rateBps) / 10,000 using integer arithmetic — no floating-point rounding errors. Each rate type supports independent minimum and maximum taxable thresholds.
LOAN_INTEREST_TAX and DIVIDEND_WITHHOLDING_TAX implement structural tax evasion prevention. Tax is deducted before income reaches the recipient — at the same moment the underlying transaction executes.
Shamwari's insurance compliance system implements actuarial solvency requirements and policyholder protection at the consensus layer. When an insurer fails, policyholders are protected automatically — without court proceedings, liquidators, or regulatory intervention delays.
Each Shamwari BetaChain is a completely isolated regulatory environment with its own compliance configuration, authority accounts, tax rates, and permission policy. A single node serves all three jurisdictions simultaneously — each operating under its own legal framework, enforced independently at the consensus layer.
Every regulatory action, tax collection, permission grant, asset approval, insurance state change, and claim event creates a permanent, Dilithium-signed entry in blockchain state. No separate compliance database. No audit trail that depends on operator integrity. The blockchain is the evidence.
| Event Type | Authority Account | Record Created | Independently Verifiable | Modifiable |
|---|---|---|---|---|
| TotemApproval state change | Securities Regulator | TotemApproval entity at blockHeight | ✓ Any node | ✗ Never |
| Tax withholding event | Protocol (automatic) | CurrencyTaxRecord per transaction | ✓ Any node | ✗ Never |
| Permission grant | CHAIN_ADMIN | BetaChainPermission + EncryptedData | ✓ Any node | ✗ Never |
| Permission revocation | CHAIN_ADMIN | Versioned revocation at blockHeight | ✓ Any node | ✗ Never |
| Insurance product approval | Insurance Authority | InsuranceApproval record + timestamp | ✓ Any node | ✗ Never |
| Insurance suspension | Insurance Authority | Status change + suspensionHeight | ✓ Any node | ✗ Never |
| Reserve redistribution | Protocol (automatic) | Redistribution event + per-policyholder credits | ✓ Any node | ✗ Never |
| Insurance claim filing | Policyholder | InsuranceClaim with 13-state lifecycle | ✓ Any node | ✗ Never |
| CURRENCY_ISSUANCE | Central Bank | Currency entity + issuance parameters | ✓ Any node | ✗ Never |
| Tax rate configuration | Tax Collector | TaxPolicy snapshot + effective blockHeight | ✓ Any node | ✗ Never |
On Shamwari, compliance is a property of the consensus engine. On general-purpose chains and traditional systems, compliance is a property of the application — subject to bugs, operator decisions, and the risk of bypass.
| Compliance Property | Shamwari | Ethereum + DeFi | Permissioned Blockchain | Traditional Finance |
|---|---|---|---|---|
| Compliance enforcement | Protocol consensus layer | Smart contract (bypassable) | Chaincode / middleware | Application layer |
| Tax withholding | Automatic, atomic, 13 types | None | None | Manual / periodic |
| KYC data storage | Encrypted on-chain, permanent | Off-chain / none | Off-chain MSP | Operator database |
| Asset regulatory approval | 6-state TotemApproval at consensus | None native | Admin function | External registry |
| AML transfer blocking | CONTROLLABLE currency type | None native | Chaincode rule | SWIFT / correspondent bank |
| Insurance solvency | Live reserve computation, auto-redistribution | Smart contract only | None | Regulator inspection |
| Regulatory authority | Hardcoded at genesis, immutable | None native | Admin key | External regulator |
| Audit trail | Blockchain state — immutable, quantum-resistant | Event logs (limited) | Ledger (operator-controlled) | Database (modifiable) |
| Post-quantum readiness | ML-DSA + ML-KEM from genesis | ECDSA — migration pending | RSA/ECDSA — not PQC | PKI — migration underway |
Build financial applications that are compliant by construction — not by policy. Every transaction, every asset, every payment governed by the same consensus rules that secure the entire chain.