From 53d02a9752181eddfc724f4ca6be69916a51f5e2 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Tue, 23 Jul 2024 11:05:23 +0200 Subject: [PATCH] bindings/rust/src/lib.rs: make signature and pubkey structs transparent. --- bindings/rust/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index 04c97722..729e0d82 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -776,6 +776,7 @@ macro_rules! sig_variant_impl { } } + #[repr(transparent)] #[derive(Default, Debug, Clone, Copy)] pub struct PublicKey { point: $pk_aff, @@ -900,6 +901,7 @@ macro_rules! sig_variant_impl { } } + #[repr(transparent)] #[derive(Debug, Clone, Copy)] pub struct AggregatePublicKey { point: $pk, @@ -1001,6 +1003,7 @@ macro_rules! sig_variant_impl { } } + #[repr(transparent)] #[derive(Debug, Clone, Copy)] pub struct Signature { point: $sig_aff, @@ -1451,6 +1454,7 @@ macro_rules! sig_variant_impl { } } + #[repr(transparent)] #[derive(Debug, Clone, Copy)] pub struct AggregateSignature { point: $sig,