


















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















































































Question 1. Which layer of the ILP stack is responsible for routing packets between different ledgers? A) Application Layer B) Transport Layer C) Interledger Layer D) Link Layer Answer: C Explanation: The Interledger Layer provides the “IP of Value,” handling addressing and routing of ILP packets across heterogeneous ledgers. Question 2. In an ILP address such as g.us.bank.alice, what does the segment bank represent? A) The transaction type B) The connector’s identifier C) The settlement engine name D) The final recipient’s username Answer: B Explanation: In hierarchical ILP addresses, each segment after the prefix identifies a node; bank denotes the connector that forwards the packet. Question 3. Which ILP packet type initiates a conditional transfer? A) Fulfill B) Reject C) Prepare D) Settle Answer: C
Explanation: A Prepare packet contains the amount, destination, and an optional condition, thereby starting a conditional transfer. Question 4. What cryptographic primitive does a hashlock condition use? A) RSA signature B) SHA‑256 preimage C) ECDSA key pair D) HMAC‑SHA‑ 1 Answer: B Explanation: Hashlock conditions require the sender to reveal the SHA‑256 preimage that matches the hash stored in the packet. Question 5. Which of the following best describes the role of a connector in ILP? A) It stores private keys for users. B) It validates DNS records. C) It converts currencies and forwards packets. D) It mines new cryptocurrency. Answer: C Explanation: Connectors act as intermediaries that perform currency conversion and route ILP packets toward the destination. Question 6. In the STREAM protocol, what is multiplexing used for? A) Encrypting each packet individually. B) Sending multiple independent money and data streams over one connection. C) Providing redundancy across multiple connectors. D) Negotiating settlement rates.
D) money_received Answer: D Explanation: The money_received event signals that the server has received a fulfilled packet containing value. Question 10. In ilp-packet, which method would you use to decode a binary Prepare packet? A) decodePrepare() B) deserializePrepare() C) IlpPrepare.fromBinary() D) IlpPacket.fromBinary() Answer: D Explanation: IlpPacket.fromBinary() inspects the packet type byte and returns the appropriate subclass (Prepare, Fulfill, or Reject). Question 11. Which of the following is NOT a valid ILP packet type? A) Prepare B) Fulfill C) Reject D) Settle Answer: D Explanation: ILP defines only Prepare, Fulfill, and Reject packets; settlement occurs off‑chain via connectors. Question 12. When using ilp-plugin-http, what HTTP method is used to send an ILP Prepare packet?
Answer: B Explanation: The plugin sends Prepare packets in the body of an HTTP POST request to the peer’s endpoint. Question 13. What does SPSP stand for? A) Secure Payment Settlement Protocol B) Simple Payment Setup Protocol C) Stream Payment Service Provider D) Standardized Protocol for Settlements Answer: B Explanation: SPSP is the Simple Payment Setup Protocol, used to exchange STREAM connection details via a payment pointer. Question 14. A payment pointer $wallet.example/alice resolves to which type of URL? A) ilp://wallet.example/alice B) https://wallet.example/.well-known/pay C) https://wallet.example/alice D) https://wallet.example/.well-known/pay/alice Answer: D Explanation: The payment pointer resolves to a well‑known SPSP endpoint at https://wallet.example/.well-known/pay/alice.
Answer: B Explanation: An incoming-payment resource tracks funds that have been sent to a user and can be claimed by the recipient. Question 18. The <meta name="monetization" content="$wallet.example/alice"> tag is used by which browser feature? A) Web Payments API B) Web Monetization API C) Service Workers D) Payment Request API Answer: B Explanation: The Web Monetization API reads the monetization meta tag to initiate a streaming payment to the specified pointer. Question 19. Which command installs Moneyd, the local ILP “home router”? A) npm install - g moneyd B) cargo install moneyd C) brew install moneyd D) yarn global add moneyd Answer: A Explanation: Moneyd is distributed as an npm package and is installed globally via npm install - g moneyd. Question 20. When configuring Moneyd to connect to an XRP uplink, which environment variable specifies the XRP address? A) MONEYD_XRP_ADDRESS
XRP_ACCOUNTMONEYD_UPLINKILP_XRP_SEEDAnswer: A Explanation: MONEYD_XRP_ADDRESS tells Moneyd which XRP address to use for the uplink. Question 21. What is the primary purpose of the Rafiki framework? A) To mine cryptocurrency for ILP nodes. B) To provide a ready‑made connector for Account Servicing Entities. C) To replace the ILP protocol with a new standard. D) To host static web pages for payment pointers. Answer: B Explanation: Rafiki offers a production‑grade connector and account‑servicing entity (ASE) implementation. Question 22. Which ILP error code indicates that the destination address is malformed? A) F02 B) F01 C) F00 D) F03 Answer: C Explanation: F00 corresponds to a “Bad Request” error, commonly used for malformed addresses or packets. Question 23. In ILP, what does the T01 error code signify?
Question 26. Which timeout strategy is recommended for multi‑hop ILP transfers? A) Fixed 30‑second timeout for all hops. B) No timeout; rely on packet retries. C) Decreasing timeout per hop proportional to hop count. D) Increasing timeout per hop to allow for propagation delay. Answer: C Explanation: A decreasing timeout per hop ensures that the total transfer completes before the original packet expires. Question 27. What input validation step helps prevent ILP packet injection attacks? A) Verifying the packet’s MIME type. B) Checking the packet’s total length against a maximum. C) Ensuring the packet’s destination address is a DNS name. D) Requiring a TLS handshake before packet processing. Answer: B Explanation: Enforcing a maximum packet size prevents oversized or malformed packets that could overflow buffers. Question 28. Which JavaScript library provides utilities for creating ILP address strings? A) ilp-address B) ilp-addr-utils C) ilp-protocol-address D) ilp-addresses Answer: A Explanation: The ilp-address package includes functions for parsing, validating, and constructing ILP addresses.
Question 29. In the ilp-protocol-stream client, which method starts the money‑sending process? A) client.connect() B) client.sendMoney(amount) C) client.createStream() D) client.start() Answer: B Explanation: client.sendMoney(amount) initiates a conditional transfer of the specified amount over the established STREAM connection. Question 30. What does the maxPacketAmount option control in a STREAM connection? A) The maximum number of packets per second. B) The largest value a single packet may carry. C) The total amount of money to be sent. D) The size of the encryption key. Answer: B Explanation: maxPacketAmount caps the value of any individual packet, helping manage risk and congestion. Question 31. Which of the following is a valid way to retrieve an SPSP endpoint from a payment pointer using JavaScript? A) fetch(pointer).then(r => r.json()) B) spsp.resolve(pointer) C) axios.get(pointer).then(r => r.headers['Ilp-Stream-Connection']) D) fetch('https://' + pointer.replace('$', '') + '/.well-known/pay')
D) No default; must be set. Answer: D Explanation: The protocol requires the sender to specify an expiry; there is no implicit default. Question 35. Which of the following best describes “settlement” in ILP? A) The on‑chain transfer of cryptocurrency between connectors. B) The final confirmation that a Prepare packet was fulfilled. C) The process of converting ILP addresses to URLs. D) The encryption of STREAM data. Answer: A Explanation: Settlement moves actual assets (e.g., XRP, ETH) between connectors, typically using blockchain or banking systems. Question 36. When using ilp-plugin-http, what is the purpose of the incoming and outgoing methods? A) To open WebSocket connections. B) To handle inbound and outbound ILP packets respectively. C) To negotiate TLS certificates. D) To encode and decode JSON payloads. Answer: B Explanation: incoming processes packets received from a peer; outgoing sends packets to a peer. Question 37. Which of the following is NOT a supported transport for ILP links? A) ILP-over-HTTP B) ILP-over-WebSockets
C) ILP-over-Bitcoin D) ILP-over-QUIC Answer: C Explanation: ILP does not define a transport directly over Bitcoin; it uses higher‑level transports like HTTP, WebSockets, or QUIC. Question 38. In the context of STREAM, what does “frame” refer to? A) A cryptographic signature. B) A unit of data within a packet. C) The entire connection lifecycle. D) The timeout value for a packet. Answer: B Explanation: STREAM frames are small pieces of data (e.g., money, stream control) encapsulated inside a packet. Question 39. Which JavaScript method would you use to generate a new random preimage for a hashlock? A) crypto.randomBytes(32) B) crypto.createHash('sha256') C) crypto.generateKeyPairSync() D) crypto.getRandomValues() Answer: A Explanation: crypto.randomBytes(32) creates a 256‑bit random value suitable as a preimage. Question 40. What is the purpose of the ILP-Address header in an HTTP request sent by ilp-plugin-http?
Question 43. Which of the following is a recommended practice for securing a Moneyd node? A) Run it with root privileges. B) Disable TLS on all uplinks. C) Use a firewall to restrict inbound traffic to the ILP port. D) Store the private key in plain text. Answer: C Explanation: Restricting inbound traffic reduces attack surface; Moneyd does not require root or plain‑text keys. Question 44. What does the balance field in a connector’s peer state represent? A) The total amount of ILP packets processed. B) The net amount owed to or by the peer. C) The number of active streams. D) The hash of the last fulfilled packet. Answer: B Explanation: The balance tracks how much the connector owes the peer (positive) or is owed (negative). Question 45. Which of the following is the correct order of packet processing in a typical ILP flow? A) Prepare → Reject → Fulfill B) Prepare → Fulfill → Reject C) Prepare → Fulfill (or Reject) D) Fulfill → Prepare → Reject
Answer: C Explanation: A Prepare is sent; the receiver either fulfills it (Fulfill) or rejects it (Reject). Question 46. In a multi‑connector payment path, where is the hashlock condition evaluated? A) Only at the final receiver. B) At every connector along the path. C) Only at the first connector. D) At a designated settlement engine. Answer: B Explanation: Each connector must verify the condition before forwarding the packet; otherwise, the transfer would be unsafe. Question 47. Which of the following libraries provides a high‑level abstraction for building an SPSP server? A) ilp-spsp-server B) spsp-server-js C) @interledger/spsp-server D) spsp-node Answer: C Explanation: The @interledger/spsp-server package offers utilities to implement an SPSP server. Question 48. What is the primary benefit of using STREAM’s “packet-level” encryption? A) It reduces the size of ILP packets. B) It allows each packet to be independently verified and confidential.
Question 51. Which of the following best describes the “Exchange Rate Discovery” feature of STREAM? A) It queries a centralized oracle for rates. B) It propagates the best‑available rate from each connector along the path. C) It uses a fixed rate defined at connection setup. D) It ignores exchange rates and transfers value directly. Answer: B Explanation: As packets travel, each connector can attach its current rate, allowing the sender to calculate the effective conversion. Question 52. Which ILP packet field carries arbitrary application data? A) executionCondition B) data C) expiresAt D) sourceAmount Answer: B Explanation: The data field is a binary blob that applications can use for any purpose. Question 53. In ilp-protocol-stream, what does the streamId uniquely identify? A) The connector handling the packet. B) A specific logical money/data stream within a connection. C) The HTTP endpoint URL. D) The hashlock condition. Answer: B Explanation: streamId distinguishes multiple simultaneous streams multiplexed over the same connection.
Question 54. Which of the following is a valid reason to reject an ILP Prepare packet? A) The packet amount exceeds the sender’s balance. B) The packet contains a valid preimage. C) The destination address is reachable. D) The packet’s expiry is far in the future. Answer: A Explanation: Connectors must reject packets they cannot fulfill, such as those exceeding available liquidity. Question 55. What does the maxPacketAmount parameter help prevent? A) Replay attacks. B) Over‑exposure to a single packet loss. C) Unauthorized access to the shared secret. D) DNS spoofing. Answer: B Explanation: Limiting the amount per packet reduces risk if a packet is lost or maliciously intercepted. Question 56. Which of the following is NOT a standard ILP error code prefix? A) F for fulfillment errors B) T for transport errors C) R for routing errors D) U for unknown errors Answer: D