Match Cross-Chain Burns To Mints And Flag Stuck Transfers

Last updated: November 29, 2026

Quick Overview

Given burn events from source chains and mint events from destination chains, each identified by (source_domain, nonce), classify transfers as completed, stuck past an SLA, mismatched, orphan mints or duplicate mints.

Circle
Coding & Algorithms
Software Engineer
Circle
November 29, 2026
Software Engineer
Technical Screen
Coding & Algorithms
Medium

0

0

0 solved


Given burn events from source chains and mint events from destination chains, each identified by (source_domain, nonce), classify transfers as completed, stuck past an SLA, mismatched, orphan mints or duplicate mints.

Models the monitoring behind a burn-and-mint protocol like CCTP, where a transfer is only finished once the destination mint lands. The interviewer is checking that you pick the right join key, think about every failure category, and treat duplicates as a severity-one signal.

What the Interviewer Expects
  • Keys transfers by (source_domain, nonce), not by nonce alone
  • Detects duplicate mints for the same message, which would mean double issuance
  • Compares amount, recipient and destination between burn and mint
  • Flags burns with no mint only after an SLA window
  • Returns latency for completed transfers to feed metrics
  • Explains the complexity and memory for large windows
Key Topics to Cover
Hash join
Reconciliation
Cross-chain messaging
SLA monitoring
Idempotency
How to Approach This
  1. Clarify input constraints and edge cases before writing code.
  2. Walk through your approach verbally and confirm with the interviewer before coding.
  3. Start with a brute force solution, then optimize. Mention time and space complexity.
  4. Test your solution with examples, including edge cases like empty input or duplicates.
  5. Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
  • The mint events stream in continuously; how do you make this incremental with bounded memory?
  • Which categories should page someone at 3 a.m. and which go to a daily report?
  • How would you handle a source-chain reorg that removes a burn after the mint was attested?
  • How would you compute p50 and p99 transfer latency per route?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice DSA Problems
Sample Answer
Requirements
  • Burns and mints carry source_domain, nonce, amount, recipient, dest_domain, ts.
  • Nonces are unique per source domain only, so the key is the pair.
  • Output buckets: completed (with la...
High-Level Design

Build a hash map from key to burn. Walk mints in time order, tracking which keys have been minted: a repeat key is a duplicate, an unknown key is an orphan (or our burn indexer is behind), a field mis...


Submit Your Answer
Markdown supported

Related Questions