-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename decrypted_payload, modify its format #173
Conversation
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
This pull request fixes 1 alert when merging faf1b9a into 84ec0b6 - view on LGTM.com fixed alerts:
|
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
This pull request fixes 1 alert when merging bd9579d into 84ec0b6 - view on LGTM.com fixed alerts:
|
This pull request fixes 1 alert when merging dc3bcb8 into 84ec0b6 - view on LGTM.com fixed alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #173 +/- ##
==========================================
+ Coverage 51.15% 51.16% +0.01%
==========================================
Files 150 150
Lines 22899 22900 +1
Branches 6046 6047 +1
==========================================
+ Hits 11713 11716 +3
+ Misses 7580 7578 -2
Partials 3606 3606
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
assert(payload["@id"]) | ||
assert(payload["@type"]) | ||
|
||
const msgs2 = await vcxAgent.serviceConnections.getMessagesV2(connectionId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will extract the asserts to separate function and run them on the return value of getMessagesV2
as well
@@ -135,7 +135,16 @@ module.exports.createFaber = async function createFaber () { | |||
return isValid | |||
} | |||
|
|||
async function downloadReceivedMessages () { | |||
logger.info('Faber is going to download messages wit') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed the typo in my PR so please don't change to avoid conflicts
libvcx/src/aries/mod.rs
Outdated
if filter_msg_type == msg_type { | ||
return VcxAgencyMessage { | ||
uid: message.uid, | ||
decrypted_payload: msg_content.into(), | ||
decrypted_payload: decrypted_msg.clone(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we are already doing breaking changes, should this field be rather called decrypted_msg
?
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
This pull request fixes 1 alert when merging bdb0d30 into 84ec0b6 - view on LGTM.com fixed alerts:
|
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
This pull request fixes 1 alert when merging 0f7c90d into 84ec0b6 - view on LGTM.com fixed alerts:
|
* Decrypt download_messages_v2 payload Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com> * Add downloadReceivedMessagesV2 test to agent-core Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
This pull request fixes 1 alert when merging 000c58d into 84ec0b6 - view on LGTM.com fixed alerts:
|
Previously, the format of single message within output
vcx_messages_download
was JSON with following structureAnd the content of
decrypted_payload
was string-encoded JSON with structureThis PR deletes field "decrypted_payload", and introduces instead new field "decrypted_msg"
whereas the
decrypted_msg
contains directly stringified Aries JSON message. Example:Signed-off-by: Patrik Stas patrik.stas@absa.africa
Signed-off-by: Patrik Stas patrik.stas@absa.africa