Assessment reports>d3-doma>Threat Model>Function: mintOwnershipTokens(uint256 registrarIanaId, OwnershipTokenInfo[] calldata tokens, string calldata ownerAddress, string calldata correlationId)

Function: mintOwnershipTokens(uint256 registrarIanaId, OwnershipTokenInfo[] calldata tokens, string calldata ownerAddress, string calldata correlationId)

This function mints ownership tokens in response to successful tokenization requests from Doma chain. It can only be called by authorized cross-chain senders. It processes multiple tokens in batch and handles address parsing from string format.

Inputs

  • registrarIanaId

    • Control: Full.

    • Constraints: N/A (validated on Doma chain before cross-chain call).

    • Impact: IANA ID of the registrar authorizing the tokenization.

  • tokens

    • Control: Full.

    • Constraints: Array elements are converted and used to create OwnershipTokenMintInfo structures.

    • Impact: Array of token information including SLD, TLD, tokenId, and expiration date.

  • ownerAddress

    • Control: Full.

    • Constraints: Converted to address via Strings.parseAddress().

    • Impact: Owner address for the minted tokens in string format from cross-chain call.

  • correlationId

    • Control: Full.

    • Constraints: N/A.

    • Impact: Used for cross-chain operation tracking and correlation.

Branches and code coverage (including function calls)

Intended branches

Negative behavior

Zellic © 2025Back to top ↑