Skip to content

Commit

Permalink
bindings/rust/src/lib.rs: make signature and pubkey structs transparent.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Jul 23, 2024
1 parent 507c520 commit 53d02a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindings/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,7 @@ macro_rules! sig_variant_impl {
}
}

#[repr(transparent)]
#[derive(Default, Debug, Clone, Copy)]
pub struct PublicKey {
point: $pk_aff,
Expand Down Expand Up @@ -900,6 +901,7 @@ macro_rules! sig_variant_impl {
}
}

#[repr(transparent)]
#[derive(Debug, Clone, Copy)]
pub struct AggregatePublicKey {
point: $pk,
Expand Down Expand Up @@ -1001,6 +1003,7 @@ macro_rules! sig_variant_impl {
}
}

#[repr(transparent)]
#[derive(Debug, Clone, Copy)]
pub struct Signature {
point: $sig_aff,
Expand Down Expand Up @@ -1451,6 +1454,7 @@ macro_rules! sig_variant_impl {
}
}

#[repr(transparent)]
#[derive(Debug, Clone, Copy)]
pub struct AggregateSignature {
point: $sig,
Expand Down

0 comments on commit 53d02a9

Please sign in to comment.