background
logo

Security Audit Report for Atoshi's atoshi-privacy-circuits

DESCRIPCIÓN

The target of this audit is the private code repository of atoshi-privacy-circuits of Atoshi. The atoshi-privacy-circuits project is a Circom/Groth16 zero-knowledge circuit system for shielded transactions. It contains three core circuits. Shield creates private note commitments for deposits. Unshield proves note ownership and enables withdrawals with nullifierbased double-spend protection. Transfer spends an existing note and creates a new note while preserving asset consistency.

Please refer to the report for the detailed audit scope.

Our audit methodology employs automated vulnerability scans, manual verification, and business logic analysis to uncover potential security issues coupled with gas and code quality optimization recommendations.

In summary, we have found that the codebase contains 4 high-risk issues that require prompt attention. In addition, we have identified other non-critical issues as well as recommendations and notes that should be considered. The atoshi-privacy-circuits team has addressed these issues promptly. It is important to note that our audit covers only the final reported versions of the codebase. Any subsequent updates would require a re-evaluation.

HALLAZGOS CLAVE

En total encontramos 5 posibles incidencias en el smart contract. Añadimos además 3 recomendaciones y 2 notas, como se detalla a continuación:

Riesgo alto: 4
Riesgo medio: 0
Riesgo bajo: 1
Recomendación: 3
Nota: 2
ID Severity Description Status
1 High Compilation errors Fixed
2 High Incorrect range in template AmountRangeCheck Fixed
3 High Lack of binding on withdrawal signals Fixed
4 High Lack of necessary public inputs Fixed
5 Low Lack of range constraint for signal fee Fixed
6 - Remove redundant code Fixed
7 - Clarify tokenId semantics in note commitments Fixed
8 - Revise the misleading annotation Fixed
9 - Security assumption on external dependencies -
10 - Poseidon preimage ownership model -

Encontrarás más detalles en el informe de auditoría.

Da el primer paso hacia un futuro seguro

¡Contacta ahora con los servicios expertos de auditoría de código de BlockSec y refuerza la seguridad de tu protocolo antes de lanzarlo!