What is a phonon inbox? With the change of direction to a messaged based protocol, the Phonon Protocol allows for phonons to be sent and received asynchronously. To create a phonon transfer packet, a sender requires the recipient's phonon's card public identity key and a nonce. Once created, the sender must also known where the recipient wishes the transfer packet to be sent to. A phonon inbox serves three main functions provide the details required to construct a phonon transfer packet for a particular recipient receive and store phonon transfer packets provide phonon transfer packets to their recipients when requested Assumptions A phonon transfer packet can only contain a single phonon
2/2/2023Todo Update sendPhonon(), receivePhonon(), sendBalance() & receiveBalance() to include how locks are transferred. Add lockBalance() & unlockBalance() methods Understand https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#pinProto1 and update commands and responses accordingly Notes I believe the applet needs to track two integer counters. The first, activeTransactionCounter, is used when the receiving party is active (think NFC). Second, passiveTransactionCount, is for when the receiver isn't active and a third party is tracking and issuing counters (phonon inbox service). By maintaining two counters, a user can setup an external service to receive packets for them while still using their applet without counter conflict. Can the applet cache messages that if lost would result in loss of funds? Should that be the job of the client? Martin has cautioned against using indexes as IDs as this can lead to a range of bugs. I'm not knowledgeable on Java Card's limitations so I've avoided specifying how a phonon should be identified and retrieved. Need to discuss card life. How many writes?
1/25/2023or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up