Assessment reports>d3-doma>Threat Model>Function: requestTokenization(TokenizationVoucher calldata voucher, bytes calldata signature)

Function: requestTokenization(TokenizationVoucher calldata voucher, bytes calldata signature)

This function initiates domain tokenization requests by validating signed vouchers from registrars, verifying domain names, collecting fees, and sending cross-chain tokenization requests to Doma chain via _relayMessage for registrar approval.

Inputs

  • voucher

    • Control: Full.

    • Constraints: Expiration checked via _verifyNotExpiredVoucher(), nonce verified via _verifyAndUpdateNonce(), and owner must match msg.sender.

    • Impact: Contains names array, nonce, expiration, and owner address for tokenization request.

  • signature

    • Control: Full.

    • Constraints: Verified via _verifyRegistrarSignature() to ensure voucher was signed by an authorized registrar.

    • Impact: Ensures voucher authenticity and prevents unauthorized tokenization requests.

Branches and code coverage (including function calls)

Intended branches

Negative behavior

Zellic © 2025Back to top ↑