-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Move Signer
types out of the signature
module
#17099
Conversation
Signer
types out of the signature
module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it!
Let's use this opportunity to add module- and struct-level doc comments? In particular, I think we should document: Signer
trait, Presigner
struct, Keypair
struct, and prob keypair_from_seed()
. I can follow with some or all of this, if you like.
Sure! Seems like as good a time as any |
a23a008
to
18c7db7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding all the documentation! r+ nits and feature full
18c7db7
to
6a9377d
Compare
Pull request has been modified.
automerge label removed due to a CI failure |
6a9377d
to
88ed4a2
Compare
Codecov Report
@@ Coverage Diff @@
## master #17099 +/- ##
=========================================
- Coverage 82.7% 82.7% -0.1%
=========================================
Files 417 421 +4
Lines 117718 117724 +6
=========================================
- Hits 97416 97406 -10
- Misses 20302 20318 +16 |
} | ||
/// Fallibly gets the implementor's public key | ||
fn try_pubkey(&self) -> Result<Pubkey, SignerError>; | ||
/// Invallibly produces an Ed25519 signature over the provided `message` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I still see Invallibly
here... crossed commits, maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix in #17180
…17177) * sdk: Move `Signer` trait to own module (cherry picked from commit af6f3d7) * sdk: Move `Keypair` to `signer` module (cherry picked from commit 0eba6eb) * sdk: Move `Presigner` to `signer` module (cherry picked from commit 12bf6c0) * sdk: Move `NullSigner` to `signer` module (cherry picked from commit b71e4bd) * sdk: Move `signers` module into `signer` module (cherry picked from commit 967840a) * sdk: keypair - drop superfluous iter() (cherry picked from commit dbac387) Co-authored-by: Trent Nelson <trent@solana.com>
Problem
Signer
types cluttering thesignature
module.Summary of Changes
Move them to their own modules (preserving legacy use-paths)