Foundations & Encodings Checkpoint

Trace exact representations and state, diagnose a failure, and return to its specific explanation.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. CompactSize encodes 65536 using how many total bytes? Enter a decimal integer.
2. A decoder sees fd fc 00. What should canonical CompactSize decoding do?

Select one answer.

3. Decode fd 2c 01 99 as one CompactSize field. How many bytes are consumed? Enter a decimal integer.
4. For fe ff ff 00 00, why does decoding fail?

Select one answer.

5. Base58-only bytes 00 00 3a represent integer 58. Its ordinary Base58 digits are 21. What preserves the original bytes?

Select one answer.

6. An attacker changes a payload and computes a matching Base58Check checksum. What does successful decoding establish?

Select one answer.

7. Your codec round-trips its own values but disagrees with the published vector. What is the best next check?

Select one answer.

8. A decoded Base58 string contains four bytes total. Can it be a valid Base58Check result for this API?

Select one answer.

Join Discord