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

deprecates Signature::new in favor of Signature::{try_,}from #32481

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

behzadnouri
Copy link
Contributor

Problem

Signature::new lacks type-safety and may panic.

Summary of Changes

The commit deprecates this interface and instead implements Signature::{try_,}from.

Signature::new lacks type-safety and may panic. The commit deprecates
this interface and instead implements Signature::{try_,}from.
@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Merging #32481 (1729526) into master (09ddbd7) will increase coverage by 0.0%.
The diff coverage is 92.1%.

@@           Coverage Diff           @@
##           master   #32481   +/-   ##
=======================================
  Coverage    82.1%    82.1%           
=======================================
  Files         778      778           
  Lines      210199   210192    -7     
=======================================
+ Hits       172616   172628   +12     
+ Misses      37583    37564   -19     

@behzadnouri behzadnouri requested review from t-nelson and steviez July 13, 2023 18:29
Copy link
Contributor

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

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

great initiative! this has needed to die for quite some time

sdk/src/signature.rs Show resolved Hide resolved
sdk/src/signature.rs Show resolved Hide resolved
banking-bench/src/main.rs Show resolved Hide resolved
@behzadnouri behzadnouri requested a review from t-nelson July 14, 2023 16:15
Copy link
Contributor

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

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

:shipit:

@behzadnouri behzadnouri merged commit cfb0288 into solana-labs:master Jul 14, 2023
@behzadnouri behzadnouri deleted the deprecate-signature-new branch July 17, 2023 12:47
@behzadnouri behzadnouri added the v1.16 PRs that should be backported to v1.16 label Jul 17, 2023
mergify bot pushed a commit that referenced this pull request Jul 17, 2023
(cherry picked from commit cfb0288)

# Conflicts:
#	perf/src/sigverify.rs
willhickey pushed a commit that referenced this pull request Jul 18, 2023
(cherry picked from commit cfb0288)

# Conflicts:
#	perf/src/sigverify.rs
mergify bot added a commit that referenced this pull request Jul 18, 2023
…backport of #32481) (#32510)

* deprecates Signature::new in favor of Signature::{try_,}from (#32481)

(cherry picked from commit cfb0288)

# Conflicts:
#	perf/src/sigverify.rs

* resolves mergify merge conflicts

---------

Co-authored-by: behzad nouri <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.16 PRs that should be backported to v1.16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants