Private Note
The "Private Note" (or 'Secret Note') in PivotSwap serves as a personal key, kept confidential by the user throughout their engagement with the platform. Its functionality is explained as follows:
Generation of the Private Note:
When users deposit crypto assets into the smart contract, they initiate a process where they locally run a one-way cryptographic hashing algorithm.
This algorithm requires the user to input the 'splitting array', a sequence of numbers that collectively represent the total assets intended for deposit.
Upon deposit, a unique Private Note—a string of alphanumeric characters—will be automatically generated and discreetly sent to the user.
This process takes place in a top-secret manner, ensuring that the generated note remains exclusively known to the user.
Zero Knowledge Proof During Withdrawal:
During the withdrawal process, the user assumes the role of the prover, while the smart contract serves as the verifier.
The user executes a "proving algorithm" locally on their device, leveraging cryptography to generate a "proof".
The user runs the proving algorithm by inputting the "Private Note" provided by the sender, the exact "x" value positioned correctly within the sender's "splitting array," and the recipient's address.
Upon correct validation of the "proof", the Relayer triggers the smart contract to execute the subsequent action. This ensures that the initial withdrawal/swap action cannot be traced back to the user.
Last updated