Análise e melhoria da segurança de aplicação do padrão T-REX na emissão de tokens fungíveis e não fungíveis para certificados de energia renovável

  • José Roberto Vieira Junior UNICAMP
  • Marco Amaral Henriques UNICAMP

Resumo


A crescente demanda por energia renovável criou o mercado de Certificados Internacionais de Energia Renovável (I-REC), cuja comercialização tem baixa transparência e risco de fraudes. O comércio de I-RECs pode ser melhor controlado com emissão de tokens fungíveis e não fungíveis (ERC-1155). Mas, para serem considerados ativos do mundo real, precisam seguir leis financeiras e a combinação com o protocolo ERC-3643, Token for Regulated EXchanges (T-REX), permite tal regulação on-chain. Este trabalho em andamento avalia a segurança de uma implementação T-REX com ERC-1155 e descreve vulnerabilidades, que podem ser corrigidas com custo de gas inferior a 25.000 nas operações recorrentes e a 655.000 na instalação inicial.

Referências

International Energy Agency, “Product Code for Electricity: The International Attribute Tracking Standard version 1.1,” . Available: [link].

V. Buterin et al., “A Next-Generation Smart Contract and Decentralized Application Platform,” Ethereum White Paper, 2013. Available: [link]

J. Lebrun et al., “ERC3643: The T-REX protocol (Token for Regulated Exchanges) Version 4.0,” Tokeny Solutions, Mar. 2023. . Available: [link].

W. Radomski, A. Cooke, P. Castonguay, J. Therien, E. Binet, and R. Sandford, “ERC-1155: Multi Token Standard,” Ethereum Improvement Proposals, no. 1155, Jun. 2018. . Available: [link].

M. Aquilina, U. Lewrick, F. Ravenna, and L. Schönleber, “The rise of tokenised money market funds,” BIS Bulletin, no. 115, Bank for International Settlements, Nov. 2025.

Empresa de Pesquisa Energética (EPE), “Summary Report of the Brazilian Energy Balance 2025 — base year 2024.” Available: [link].

R. Correia, “diamond-erc3643-protocol,” Available: [link].

J. R. Vieira Junior, “diamond-erc3643-hardening fork do [link] Available: [link].

Paradigm, “Foundry: Ethereum development toolkit,” Available: [link].

Ethereum Foundation, “EIP-2535: Diamonds, Multi-Facet Proxy,” Available: [link].

M. Mehar, C. Shier, A. Giambattista, E. Gong, G. Fletcher, R. Sanayhie, H. M. Kim, and M. Laskowski, “Understanding a Revolutionary and Flawed Grand Experiment in Blockchain: The DAO Attack,” Journal of Cases on Information Technology, vol. 21, no. 1, pp. 19–32, 2019. DOI: 10.4018/JCIT.2019010102.

OpenZeppelin, “Security API - ReentrancyGuard,” Available: [link].

Consensys, “Solidity Best Practices for Smart Contract Security,” Available: [link].

OWASP Foundation, OWASP Smart Contract Security Available: [link].

P. Haryani et al., “Blockchain-based renewable energy certificate management system using semi-fungible token,” Heliyon, vol. 11, e42364, 2025. DOI: 10.1016/j.heliyon.2025.e42364.
Publicado
01/09/2026
VIEIRA JUNIOR, José Roberto; HENRIQUES, Marco Amaral. Análise e melhoria da segurança de aplicação do padrão T-REX na emissão de tokens fungíveis e não fungíveis para certificados de energia renovável. In: SIMPÓSIO BRASILEIRO DE CIBERSEGURANÇA (SBSEG), 26. , 2026, Armação dos Búzios/RJ. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2026 . p. 1372-1378. DOI: https://doi.org/10.5753/sbseg.2026.26975.