Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

fix: Verifiable PayID JWS Consumable - #661

Merged
dino-rodriguez merged 4 commits into
masterfrom
dr-fix-verifiable-payid
Aug 17, 2020
Merged

dino-rodriguez merged 4 commits into
masterfrom
dr-fix-verifiable-payid

Conversation

@dino-rodriguez

Copy link
Copy Markdown
Member

High Level Overview of Change

Outputs verifiable PayID payloads as stringified JSON, instead of JSON.

Context of Change

After discussing with @nhartner, I learned that the payload needs to be
stringified JSON, so that it can be verified as a JWS ( as per RFC7797 ).

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)
  • Documentation Updates
  • Release

Before / After

Updates protocol output, and relevant tests

Test Plan

No new tests needed

Comment thread src/types/protocol.ts Outdated
*/
interface VerifiedAddress {
readonly payload: VerifiedAddressPayload
readonly payload: VerifiedAddressPayload | string

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need to keep this as VerifiedAddressPayLoad | string vs just string?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think this might have been a leftover from the last minute changes to make the demo work

@0xCLARITY 0xCLARITY left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending Neil's comment.

@dino-rodriguez
dino-rodriguez merged commit 1bc0776 into master Aug 17, 2020
@dino-rodriguez
dino-rodriguez deleted the dr-fix-verifiable-payid branch August 17, 2020 20:47
sasaki-san pushed a commit to jxpug/payid-serverless that referenced this pull request Nov 16, 2020
* fixes

* test: update tests to use strinfied json

* drop unused type

Co-authored-by: Hans Bergren <[email protected]>
sasaki-san added a commit to jxpug/payid-serverless that referenced this pull request Nov 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants