> Architecture Dossier/2023

DFINITY (ICP) & MyLugano Hub

Mentorship for the Web3 startup incubator of the City of Lugano and the DFINITY Foundation.

  • ICP
  • DFINITY
  • Incubator
  • Mentorship

Executive Summary

MyLugano Hub is a Web3 startup incubator run by the City of Lugano and the DFINITY Foundation, with SUPSI and ICP.Hub Italia, for teams building on the Internet Computer Protocol (ICP). Gianluca Perletti contributes technical mentorship and architectural guidance to founders in the program.

The Problem & Industry Challenge

Many Web3 applications run their smart contracts on-chain but host frontends, databases and storage on centralized cloud providers, which reintroduces single points of failure.

The Internet Computer Protocol (ICP), developed by the DFINITY Foundation, lets canister smart contracts run general-purpose compute, keep state and serve web content directly to browsers, with compute paid in cycles by the canister.

Building on ICP requires understanding new concepts: asynchronous inter-canister messaging, reentrancy risks across await points, stable memory across upgrades and chain-key cryptography. Early-stage teams benefit from architectural guidance to avoid security and reliability issues.

My Role & Technical Leadership

Gianluca Perletti contributes as a technical mentor to MyLugano Hub, supporting founders and engineering teams building on ICP.

He reviews canister architectures with teams, covering multi-canister design, stable memory management and asynchronous message flows.

He helps projects connect ICP with EVM networks and Bitcoin using ICP's chain-key (threshold) signatures.

He reviews security aspects such as canister upgrade procedures, inter-canister access control and state serialization.

Technical Architecture & Systems Engineering

Canister smart contracts

WebAssembly modules that bundle code and state and can serve both web frontends and backend logic from the Internet Computer.

Cycles-based (reverse-gas) model

canisters pay for their compute with cycles, obtained by converting ICP, so end users can use applications from a standard browser without a wallet extension or gas token.

Chain-key signatures

threshold ECDSA and threshold Schnorr (BIP340 and Ed25519) let canisters hold keys and sign transactions for Bitcoin and EVM networks without centralized bridge intermediaries.

Actor model & asynchronous messaging

canisters communicate through asynchronous calls. Because other messages can interleave between await points, reentrancy is mitigated with locking (caller-guard) patterns and idempotent design.

Orthogonal persistence & stable memory

memory layouts that preserve state across canister upgrades.

Threat modeling & access control

access-control checks, input validation and protection against cycle-draining abuse of public update endpoints.

Results & Verified Milestones

[1]

Provided technical mentorship to teams building on ICP within MyLugano Hub.

[2]

Supported teams in designing canister architectures and integrations with Bitcoin and EVM networks.

[3]

Shared knowledge across EVM, Bitcoin and Internet Computer ecosystems with early-stage founders.

Frequently Asked Questions

What is MyLugano Hub?

MyLugano Hub is a Web3 startup incubator run by the City of Lugano and the DFINITY Foundation, with SUPSI and ICP.Hub Italia, for teams building on the Internet Computer Protocol. Selected projects can receive up to the equivalent of USD 85,000 in ICP, with a mentor assigned to each project during a 6-month program.

What is Gianluca Perletti's role at MyLugano Hub?

Gianluca contributes technical mentorship, canister architecture reviews and security guidance to founders and developers in the incubator.

What makes ICP canister architecture different from traditional smart contracts?

Canisters combine code, state and web serving in WebAssembly modules and pay for their own compute with cycles, so users can access applications from a normal browser without needing a wallet or gas token.