Skip to Content

Verity Blockchain Module: Multi-Chain Product Authentication & Traceability

Verity Blockchain Module Whitepaper

The Verity Blockchain Module is a cornerstone of the Verity One traceability ecosystem, enabling secure, transparent, and tamper-resistant registration of uniquely identified products across diverse blockchain networks. Integrated with the Verity UUID Core, this module registers Universally Unique Identifiers (UUIDs) as Non-Fungible Tokens (NFTs) or immutable ledger assets on public and permissioned blockchains, including Hyperledger Fabric, Hyperledger Iroha, Ethereum, Polygon, XRP Ledger (XRPL), BASE, Hedera (HBAR), and TRON. The module supports the innovative V Token (also referred to as Pearl Token or Nutrient Credit), a utility token that facilitates seamless transactions, swaps, and reissuance of assets across supported networks, with Verity One managing gas fees, swap fees, and reissue fees to ensure a frictionless user experience.

This whitepaper provides a comprehensive exploration of the module’s technical architecture, configuration, security framework, public interfaces, and the V Token’s role in enhancing interoperability. It also outlines a roadmap for future enhancements, including Zero-Knowledge Proofs (ZKP), Verity Points gamification, biometric verification, and expanded Layer 2 scalability. Key features include:

  • Multi-Network Compatibility: Supports private (Fabric, Iroha) and public (Ethereum, Polygon, XRPL, BASE, HBAR, TRON) blockchains.
  • V Token Integration: Enables transactions, swaps, and reissuance with streamlined fee management.
  • Smart Contract Automation: Facilitates NFT minting and asset registration with standards like ERC-721 and XLS-20.
  • Decentralized Metadata: Uses InterPlanetary File System (IPFS) for robust off-chain storage.
  • Comprehensive Auditability: Logs UUID lifecycle events with transaction hashes, GPS, and device metadata.
  • Modular Architecture: Ensures plug-and-play integration and adaptability to emerging technologies.

The Verity Blockchain Module empowers stakeholders to authenticate products, track supply chain milestones, and demonstrate regulatory compliance, fostering trust across industries. The V Token enhances this ecosystem by providing a unified mechanism for cross-chain interactions, making traceability and asset management more accessible and efficient.

Section 1: Blockchain Module Architecture

1.1 Overview

The verity_blockchain module serves as the blockchain-agnostic interface for the Verity One ecosystem, decoupling UUID registration from core identifier generation for modularity and scalability. It processes UUIDs from the verity_uuid_core module, registering them as NFTs or immutable assets on selected blockchain networks. The module also integrates the V Token (Pearl Token or Nutrient Credit), a utility token that streamlines transactions, asset swaps, and reissuance across supported networks. Verity One handles associated gas fees, swap fees, and reissue fees, ensuring a seamless user experience.

Each registration is logged with:

  • Blockchain transaction hash
  • Target network identifier
  • Event type (e.g., register, transfer, scan, swap, reissue)
  • Optional metadata (GPS coordinates, device information)
  • Timestamp and public tokenURI endpoint

This creates an unbroken provenance chain, linking each UUID to its on-chain record and V Token transactions for global verifiability.

1.2 Supported Blockchain Networks

The module supports a diverse set of blockchain networks, each tailored to specific use cases and enhanced by V Token functionality:

Network

Type

Use Case

Integration Method

V Token Support

Hyperledger Fabric

Private

Enterprise auditing and compliance

Hyperledger Python SDK (hfc)

Limited (Internal)

Hyperledger Iroha

Private

Lightweight, permissioned ledger

iroha-python

Limited (Internal)

Ethereum

Public

ERC-721 NFT minting, global visibility

web3.py + Infura

Full (Swap, Reissue)

Polygon

Public

Scalable, low-cost NFT issuance

web3.py + RPC

Full (Swap, Reissue)

XRPL

Public

Fast, cross-border tokenization

xrpl-py

Full (Swap, Reissue)

BASE

Public (L2)

Cost-efficient Ethereum VM applications

web3.py + Alchemy

Full (Swap, Reissue)

Hedera (HBAR)

Public

High-throughput tokenization

hedera-sdk-python

Full (Swap, Reissue)

TRON

Public

High-speed, low-cost transactions

tronpy

Full (Swap, Reissue)

Each network is accessed via a dedicated _register_<network>() method in the blockchain_registry.py file, abstracted through _register_on_blockchain() for dynamic routing. The V Token is fully supported on public networks (Ethereum, Polygon, XRPL, BASE, HBAR, TRON), enabling users to pay for transactions, swaps, or reissuance, with Verity One managing all associated fees.

1.3 Registration Lifecycle

The registration process incorporates V Token functionality:

  1. UUID Creation: The verity_uuid_core module generates a UUID or flags an existing one for registration.
  2. Network Selection: An admin, automated rule, or default configuration selects the target blockchain.
  3. Token Minting/Asset Registration:
    • ERC-721 Networks (Ethereum, Polygon, BASE): Executes mint() on a smart contract, passing the UUID and tokenURI.
    • XRPL: Creates a native NFT using XLS-20 standards.
    • HBAR: Mints tokens via Hedera Token Service (HTS).
    • TRON: Issues TRC-721 NFTs.
    • Fabric/Iroha: Writes immutable assets via chaincode or commands.
  4. V Token Transaction: Users pay gas, swap, or reissue fees using V Tokens, with Verity One handling fee processing via smart contracts or off-chain settlement.
  5. Transaction Logging: The transaction hash is stored in the UUID record (blockchain_hash) and verity.fabric.log.
  6. IPFS Pinning (Optional): Metadata is uploaded to IPFS using pin_ipfs.py.

Lifecycle Diagram:

+-------------------------+
|     UUID Created        |
|  (verity_uuid_core)     |
+-------------------------+
              ↓
+-------------------------+
| Blockchain Selected     |
| (Ethereum, XRPL, etc.)  |
+-------------------------+
              ↓
+-------------------------+
| V Token Fee Payment     |
| (Gas, Swap, Reissue)    |
+-------------------------+
              ↓
+-------------------------+
|    Mint/Write to Chain  |
| (ERC-721 or Ledger TX)  |
+-------------------------+
              ↓
+-------------------------+
| Transaction Hash Saved  |
| in Log + UUID Record    |
+-------------------------+
              ↓
+-------------------------+
|    IPFS Pin (Optional)  |
|  Metadata + QR Code     |
+-------------------------+

1.4 TokenURI Metadata

Each registered UUID is associated with a tokenURI at https://verity.one/meta/<uuid>.json, including:

  • Name: Product or asset name.
  • Description: UUID code and product context.
  • Image: IPFS/HTTP URL to QR code or product image.
  • Attributes: Blockchain network, claim status, GPS, V Token transaction details (e.g., swap history).

The metadata adheres to ERC-721/TRC-721 standards, ensuring compatibility with marketplaces like OpenSea, Rarible, and TRON’s NFT platforms, and supports extensions for GS1 or schema.org.

1.5 Modularity & Future-Proofing

The module’s design ensures:

  • Decoupled Architecture: Blockchain registration and V Token operations are optional.
  • Extensibility: Supports new networks (e.g., Solana) and token standards (e.g., ERC-1155).
  • V Token Integration: Seamlessly handles cross-chain fee payments and asset swaps.
  • Secure Configuration: Stores credentials in .env files using python-dotenv.

Section 2: Configuration, Deployment & Security

2.1 Environment Configuration

The .env file includes V Token and new network configurations:

ini

# Web3 Providers
WEB3_PROVIDER_POLYGON=https://polygon-rpc.com
WEB3_PROVIDER_ETHEREUM=https://mainnet.infura.io/v3/YOUR_INFURA_KEY
WEB3_PROVIDER_BASE=https://base-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_KEY
WEB3_PROVIDER_HBAR=https://mainnet-public.mirrornode.hedera.com
WEB3_PROVIDER_TRON=https://api.trongrid.io

# Wallet Credentials
WALLET_PRIVATE_KEY=0xYourPrivateKey

# Smart Contract Addresses
CONTRACT_ADDRESS_POLYGON=0xPolygonNFTContract
CONTRACT_ADDRESS_ETHEREUM=0xEthereumNFTContract
CONTRACT_ADDRESS_BASE=0xBaseNFTContract
CONTRACT_ADDRESS_HBAR=0xHederaTokenContract
CONTRACT_ADDRESS_TRON=0xTronNFTContract
V_TOKEN_CONTRACT=0xVTokenContract

# XRPL Configuration
XRPL_RPC_URL=https://xrplcluster.com
XRPL_SEED=snYourXRPLSecretSeed

# Hyperledger Settings
FABRIC_CONFIG_PATH=/opt/fabric/network.json
IROHA_DOMAIN=verity

2.2 Deployment Prerequisites

Prerequisite

Description

Odoo 18+

Installed with

verity_uuid_core

and

verity_blockchain

modules

Python 3.8+

Required for blockchain libraries

Python Packages

pip install web3 xrpl-py hfc iroha hedera-sdk-python tronpy qrcode pillow python-dotenv

Smart Contracts

Deployed ERC-721/TRC-721/HTS contracts and V Token contract

Funded Wallets

MATIC, ETH, XRP, HBAR, TRX for gas fees; V Tokens for user transactions

IPFS Node (Optional)

Pinata or local IPFS for metadata storage

2.3 Security Framework

  • Secrets Management: .env files are gitignored; V Token private keys are memory-only.
  • Transaction Isolation: V Token payments and blockchain operations run in commit-safe contexts.
  • Access Controls: Only authorized users can initiate minting or V Token transactions.
  • V Token Safeguards: Fee payments are validated via smart contracts to prevent overcharges or fraud.

2.4 IPFS Integration

The pin_ipfs.py utility uploads metadata, including V Token transaction details, to IPFS. Sample payload:

json

{
  "name": "Verity Certified IPA",
  "description": "UUID BER-abc123 for batch 01",
  "image": "ipfs://QmXYZ.../qrcode.png",
  "attributes": [
    {"trait_type": "Product Type", "value": "Beer"},
    {"trait_type": "Blockchain", "value": "Polygon"},
    {"trait_type": "V Token Swap", "value": "Polygon to Ethereum"},
    {"trait_type": "Certification", "value": "USDA Organic"}
  ]
}

2.5 Token Lifecycle Safeguards

Each NFT/asset is:

  • Linked: Tied to a verity.uuid record.
  • Logged: Includes V Token transaction details in verity.fabric.log.
  • Protected: Prevents duplicate minting or unauthorized swaps.
  • Accessible: Verifiable via public endpoints.

Section 3: Public Interfaces & Metadata Standards

3.1 Public Endpoints

  • /uuid/<uuid>: Public claim page for UUID verification and V Token-based ownership assignment.
  • /uuid/<uuid>/qr: Downloadable QR code image.
  • /meta/<uuid>.json: NFT metadata, including V Token transaction history.
  • /vtoken/<uuid>/status: Displays V Token balance and transaction history for a UUID.

3.2 Metadata Structure

The tokenURI metadata includes V Token details:

json

{
  "name": "Verity Certified IPA",
  "description": "UUID BER-abc123 for batch 01",
  "image": "ipfs://QmXYZ.../qrcode.png",
  "external_url": "https://verity.one/uuid/BER-abc123",
  "attributes": [
    {"trait_type": "Product Type", "value": "Beer"},
    {"trait_type": "Blockchain", "value": "Polygon"},
    {"trait_type": "V Token Swap", "value": "Polygon to TRON"},
    {"trait_type": "Certification", "value": "USDA Organic"}
  ]
}

Section 4: Token Lifecycle & Audit Logging

4.1 Token Lifecycle

  1. UUID creation in verity_uuid_core.
  2. Blockchain selection.
  3. V Token payment for gas/swap/reissue fees.
  4. Token minting/registration.
  5. Metadata storage on IPFS.
  6. Event logging in verity.fabric.log.
  7. Public tokenURI availability.
  8. Claim/verification via login or QR scan.

4.2 Audit Logging Model

The verity.fabric.log captures:

  • uuid_id, event_type (including swap, reissue), blockchain_network, transaction_hash, timestamp, ip_address, device_info, latitude, longitude, v_token_amount.

Section 5: Real-World Applications

  • Supply Chain Transparency: Tracks products with V Token-enabled cross-chain swaps.
  • Product Authentication: Verifies authenticity via QR scans, with V Token payments for premium features.
  • Regulatory Compliance: Logs certifications on-chain, with V Token reissuance for updates.
  • Collectibles: Mints NFTs, with V Token swaps across marketplaces.
  • Consumer Engagement: Uses V Tokens for loyalty rewards or gamified interactions.

Section 6: V Token (Pearl Token / Nutrient Credit)

6.1 Overview

The V Token (Pearl Token or Nutrient Credit) is a utility token that powers transactions, asset swaps, and reissuance within the Verity One ecosystem. It is supported on Ethereum, Polygon, XRPL, BASE, HBAR, and TRON, enabling users to:

  • Pay gas fees for minting or transfers.
  • Swap assets between supported blockchains (e.g., Polygon to TRON).
  • Reissue tokens for updated metadata or compliance requirements.

Verity One manages all associated fees (gas, swap, reissue) through a centralized settlement layer, abstracting complexity from users. The V Token operates via a dedicated smart contract (V_TOKEN_CONTRACT), ensuring secure and transparent transactions.

6.2 User Experience

  • Seamless Payments: Users pay V Tokens for actions, with Verity One covering gas fees in native currencies (e.g., MATIC, ETH).
  • Cross-Chain Swaps: Assets can be swapped between networks (e.g., an NFT minted on Polygon can be swapped to TRON) using V Tokens.
  • Reissuance: Tokens can be reissued with updated metadata (e.g., new certifications) via V Token payments.
  • Public Interface: The /vtoken/<uuid>/status endpoint provides real-time V Token transaction history.

6.3 Technical Implementation

  • Smart Contract: The V Token contract handles fee collection, swap logic, and reissuance workflows.
  • Fee Management: Verity One’s off-chain settlement converts V Token payments to native currencies for gas fees.
  • Audit Logging: All V Token transactions are logged in verity.fabric.log with v_token_amount and event_type.

6.4 Benefits

  • Simplifies cross-chain interactions for users.
  • Reduces cost barriers by centralizing fee management.
  • Enhances interoperability across public blockchains.

Section 7: Roadmap & Future Enhancements

  • Advanced Token Management: Add transferNFT(), burnNFT(), freezeNFT().
  • V Token Enhancements:
    • Support additional networks (e.g., Solana, Arbitrum).
    • Introduce V Token staking for premium features.
  • Biometric Verification: Integrate face/fingerprint scans for claims.
  • Enhanced Metadata: Embed origin proofs, lab results, certifications.
  • AI Fraud Detection: Flag suspicious V Token or scan patterns.
  • Multi-Wallet Integration: Support MetaMask, XRP Toolkit, etc.
  • Zero-Knowledge Proofs: Enable privacy-preserving verification.
  • Verity Points Gamification: Reward users with V Tokens or points.
  • Layer 2 & Cross-Chain Expansion: Add Arbitrum, Optimism, and bridges.

Section 8: 

The Verity Blockchain Module, enhanced by the V Token, delivers a robust, scalable solution for blockchain-based traceability. By supporting multiple networks, seamless fee management, and cross-chain interoperability, it addresses current needs while preparing for future advancements. For further details, contact support@verity.one (mailto:support@verity.one).