Skip to content

signature_derive: adds support for lifetimes#1641

Closed
baloo wants to merge 1 commit into
RustCrypto:masterfrom
baloo:baloo/signature_derive/lifetime-support
Closed

signature_derive: adds support for lifetimes#1641
baloo wants to merge 1 commit into
RustCrypto:masterfrom
baloo:baloo/signature_derive/lifetime-support

Conversation

@baloo

@baloo baloo commented Aug 6, 2024

Copy link
Copy Markdown
Member

This allows to writes things like:

#[derive(Debug, Signer)]
pub struct EcSigner<'ctx, C>
where
    C: PrimeCurve + CurveArithmetic,
{
    context: Mutex<&'ctx mut TransientKeyContext>,
}

Usecase: parallaxsecond/rust-tss-esapi#537

@baloo baloo marked this pull request as draft August 6, 2024 23:17
@baloo baloo force-pushed the baloo/signature_derive/lifetime-support branch from b76ff3a to 148d9ce Compare August 6, 2024 23:30
@baloo baloo marked this pull request as ready for review August 6, 2024 23:30
@baloo baloo closed this Aug 7, 2024
@baloo baloo deleted the baloo/signature_derive/lifetime-support branch August 7, 2024 02:11
@tarcieri

tarcieri commented Aug 7, 2024

Copy link
Copy Markdown
Member

Why'd you close this?

@baloo

baloo commented Aug 8, 2024

Copy link
Copy Markdown
Member Author

because I realized it was easy enough to implement manually.

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.

2 participants