You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm just starting to use this project and it's everything I want in a DER encoder/decoder (especially the derive macros, which are incredibly helpful). One thing I'm wondering if is there's a built-in way to have something like this:
And encode it as if SignatureWrapper was just a Bytes. Right now, it seems to wrap it. Is there a #[rasn(...)] attribute that can do this, or would this be something I'd need to open a PR for? Thank you!
The text was updated successfully, but these errors were encountered:
You know what, I don't think I need this actually. Since rust got [u8; N] const generic support I can just manually implement Encode/Decode for one type that covers everything. I'll leave it open in case you find it useful still, but if not, feel free to close.
Thank you for your issue! This functionality is already available in rasn. Simply add #[rasn(delegate)] to the newtype, and then it will be transparently encoded and decoded.
Hello! I'm just starting to use this project and it's everything I want in a DER encoder/decoder (especially the derive macros, which are incredibly helpful). One thing I'm wondering if is there's a built-in way to have something like this:
And encode it as if
SignatureWrapper
was just aBytes
. Right now, it seems to wrap it. Is there a#[rasn(...)]
attribute that can do this, or would this be something I'd need to open a PR for? Thank you!The text was updated successfully, but these errors were encountered: