Skip to content

fix(message-signing): add working message verification utility fn#1260

Merged
janniks merged 1 commit intomasterfrom
fix/add-custom-verify-fn
May 19, 2022
Merged

fix(message-signing): add working message verification utility fn#1260
janniks merged 1 commit intomasterfrom
fix/add-custom-verify-fn

Conversation

@kyranjamie
Copy link
Copy Markdown
Contributor

In changing the signature format, the current docs & blog post has broken code examples.

See leather-io/extension#2435

I copied parseRecoverableSignature from @stacks/transactions. What's best solution to reuse the fn? Atm encryption doesn't rely on tx package. Should we move to common?

Open to other solutions. Would be good to come up with a quick fix though, so users don't hit a wall when trying to use msg signing.

@kyranjamie kyranjamie requested a review from janniks May 19, 2022 09:39
@vercel
Copy link
Copy Markdown

vercel bot commented May 19, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
stacks-js ✅ Ready (Inspect) Visit Preview May 19, 2022 at 0:03AM (UTC)

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 19, 2022

Codecov Report

Merging #1260 (64e8409) into master (8ad4d83) will decrease coverage by 0.08%.
The diff coverage is 36.84%.

@@            Coverage Diff             @@
##           master    #1260      +/-   ##
==========================================
- Coverage   64.57%   64.49%   -0.09%     
==========================================
  Files         124      125       +1     
  Lines        8642     8652      +10     
  Branches     1854     1859       +5     
==========================================
- Hits         5581     5580       -1     
- Misses       2818     2828      +10     
- Partials      243      244       +1     
Impacted Files Coverage Δ
packages/common/src/signatures.ts 22.22% <22.22%> (ø)
packages/encryption/src/ec.ts 72.61% <37.50%> (-1.92%) ⬇️
packages/common/src/index.ts 100.00% <100.00%> (ø)
packages/transactions/src/keys.ts 92.85% <100.00%> (+0.54%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ad4d83...64e8409. Read the comment docs.

Copy link
Copy Markdown
Contributor

@janniks janniks left a comment

Choose a reason for hiding this comment

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

LGTM

@kyranjamie kyranjamie force-pushed the fix/add-custom-verify-fn branch from 832ed9b to 64e8409 Compare May 19, 2022 12:03
@janniks janniks merged commit 20b721c into master May 19, 2022
@janniks janniks deleted the fix/add-custom-verify-fn branch May 19, 2022 12:20
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