You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following #5867 and #5899 we need to also be able to decode. This don't need to happen in a circuit so we simply do it in typescript. This should be able to take a look back at aztec-connect to see if it can get some information from there as it was also using AES.
As part of #5899 and #5867 there are typescript parts for encrypting and decryption these two.
We mainly need to deal with the combination of them into something that looks more like the encrypted log buffer that we have currently.
This should be addressed along with #5901 to not have too many conflicts.
The l1_note_payload should be altered to take the eph_pk, header and body as outlined from the diagram, using the classes to handle decryption of those individually.
There should be a l1_note_payload::fromEncryptedBuffer function that does something along these lines:
Activity
[-]feat(Keys_Viewing): Decrypt ciphertext[/-][+]feat(Keys_Viewing): Decrypt incoming ciphertext[/+][-]feat(Keys_Viewing): Decrypt incoming ciphertext[/-][+]feat(Keys_Incoming): Decrypt incoming ciphertext[/+]LHerskind commentedon May 8, 2024
As part of #5899 and #5867 there are typescript parts for encrypting and decryption these two.
We mainly need to deal with the combination of them into something that looks more like the encrypted log buffer that we have currently.
LHerskind commentedon May 8, 2024
Related information in #5901 (comment).
LHerskind commentedon May 8, 2024
This should be addressed along with #5901 to not have too many conflicts.
The
l1_note_payloadshould be altered to take theeph_pk,headerandbodyas outlined from the diagram, using the classes to handle decryption of those individually.There should be a
l1_note_payload::fromEncryptedBufferfunction that does something along these lines:Similar changes should happen in the note processor to get this going.
Places to look:
emitEncryptedLogshould just take the raw array for tag and encrypted dataemit_encrypted_logneed to compute the header, body etc and compute the bytes that is to be emitted.emit_encrypted_logoracle should be altered to take raw bytes and not return anything.LHerskind commentedon May 18, 2024
Was fixed in #6251 and #6411