-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Application Crypto cleanup #13746
Application Crypto cleanup #13746
Conversation
michalkucharczyk
left a comment
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.
lgtm. Out of curiosity - why did you remove MaybeHash? Is this because it was not used anywhere? Or maybe it was to restrictive for some type that will be used in this context in future?
Because I'm dumb 🤦♂️ |
|
This needs to be rebased on current master, there have been breaking changes to the check-crate-publishing job. |
melekes
left a comment
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.
lgtm
Co-authored-by: Anton <[email protected]>
* Adjust application crypto docs * Blanket implementation for 'RuntimeAppPublic' trait * Blanket implementation for 'BoundToRuntimeAppPublic' for 'RuntimeAppPublic' * Relax type bounds * Docs fix * restore MaybeHash * Commit suggestion Co-authored-by: Anton <[email protected]> --------- Co-authored-by: Anton <[email protected]>
* Adjust application crypto docs * Blanket implementation for 'RuntimeAppPublic' trait * Blanket implementation for 'BoundToRuntimeAppPublic' for 'RuntimeAppPublic' * Relax type bounds * Docs fix * restore MaybeHash * Commit suggestion Co-authored-by: Anton <[email protected]> --------- Co-authored-by: Anton <[email protected]>
* Adjust application crypto docs * Blanket implementation for 'RuntimeAppPublic' trait * Blanket implementation for 'BoundToRuntimeAppPublic' for 'RuntimeAppPublic' * Relax type bounds * Docs fix * restore MaybeHash * Commit suggestion Co-authored-by: Anton <[email protected]> --------- Co-authored-by: Anton <[email protected]>
Blanket implementation of
RuntimeAppPublictrait for any type implementingAppPublicand for whichAppPubic::GenericimplementsRuntimePublic(in practice implements the trait for any application-specificPublicthat can be used within the runtime).app_crypto!allows to use the macro to implement application specific crypto types that are not necessarily usable by the runtime.Blanket implementation of
BoundToRuntimeAppPublictrait for any type implementingRuntimeAppPublicRemove unused
CRYPTO_IDfromRuntimeAppPublicDocumentation improvement
Relax some trait bounds