Skip to content

Add EdDSA algorithm encoding/decoding usage#993

Merged
jpadilla merged 1 commit intojpadilla:masterfrom
peter279k:add_eddsa_usage
Oct 8, 2024
Merged

Add EdDSA algorithm encoding/decoding usage#993
jpadilla merged 1 commit intojpadilla:masterfrom
peter279k:add_eddsa_usage

Conversation

@peter279k
Copy link
Copy Markdown
Contributor

As title, adding the EdDSA algorithm to encode/decode usage.

@peter279k
Copy link
Copy Markdown
Contributor Author

@jpadilla, if possible, could you review the PR? Thanks :).

Copy link
Copy Markdown
Owner

@jpadilla jpadilla left a comment

Choose a reason for hiding this comment

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

thank you! mind updating and fixing conflicts?

@jpadilla jpadilla added the hacktoberfest Issues for first-time contributors label Oct 8, 2024
@peter279k
Copy link
Copy Markdown
Contributor Author

@jpadilla, I've resolved PR conflicts, please review this PR at your available time. Thanks!

Comment thread docs/usage.rst Outdated
Comment on lines +72 to +73
>>> print(encoded)
eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.yPJ7Ggb6aOZn38vNai8bBN6bgfcrzKXSTsdXeGsZGibnxSZrWDrWeB6p35f9RFkMnYgToe_eh4mgye5V6wj5DQ
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
>>> print(encoded)
eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.yPJ7Ggb6aOZn38vNai8bBN6bgfcrzKXSTsdXeGsZGibnxSZrWDrWeB6p35f9RFkMnYgToe_eh4mgye5V6wj5DQ

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Do we really need to remove encoded printing?

If we remove encoded printing, I think the encoded variable will be unused.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

the exact string representation of the token matters less and can fail dockets.

encoded is used in the decode step below.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I see. The encoded presenting has been removed.

@jpadilla jpadilla merged commit 8910f56 into jpadilla:master Oct 8, 2024
@peter279k peter279k deleted the add_eddsa_usage branch October 8, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest Issues for first-time contributors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants