Skip to content
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

Signed attachments #456

Merged

Conversation

sklump
Copy link
Contributor

@sklump sklump commented Apr 14, 2020

No description provided.

@codecov-io
Copy link

codecov-io commented Apr 14, 2020

Codecov Report

Merging #456 into master will increase coverage by 0.10%.
The diff coverage is 99.25%.

@@            Coverage Diff             @@
##           master     #456      +/-   ##
==========================================
+ Coverage   90.60%   90.71%   +0.10%     
==========================================
  Files         248      248              
  Lines       12216    12285      +69     
==========================================
+ Hits        11068    11144      +76     
+ Misses       1148     1141       -7     

def raw_key(verkey: str) -> str:
"""Strip qualified key to raw key if need be."""

return verkey[9:] if verkey.startswith("did:key:z") else verkey
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think decoding a did:key is as simple as stripping off the prefix, I believe it adds a couple bytes to the binary representation and re-encodes as base58

@andrewwhitehead andrewwhitehead merged commit 8463a3d into openwallet-foundation:master Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants