Skip to content

Question: Best Practice for Storing Temporary Keys for Escrow Contract #221

Answered by isabellewei
jrweinb asked this question in Help (Q&A)
Discussion options

You must be logged in to vote

Hi @jrweinb! Apologies that this isn't explained in the docs, but the new escrow flow in Valora no longer requires you to generate a temporary private key for the paymentId and send it to the receiver. Instead, the phone hash and pepper is used to generate the paymentId. Instead of sending the paymentId to the invited user, when claiming escrowed transactions Valora uses their phone number to compute the paymentId, so the invited user just needs to download Valora and verify their number

you can see the function that generates the paymentId: https://github.com/celo-org/wallet/blob/623bf8c483fb2fdcde6e6425070c021dfd8d3834/packages/mobile/src/escrow/utils.ts#L22-L37 and where it is used: ht…

Replies: 0 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by alecps
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment