Skip to content

Commit 2d097c2

Browse files
committed
Merge #23: Implement AsRef for EcdsaAdaptorSignature
687bb98 Implement AsRef for EcdsaAdaptorSignature (Tibo-lg) Pull request description: ACKs for top commit: jonasnick: ACK 687bb98 Tree-SHA512: 629ccc559cccd1e483299fd6e1cd61b9ff4c4de3fe83871dc7a1840a99d323acf6770845095d9340d575d90649d241ea8818a307d5aa6730d0a7ce1eef0760c7
2 parents 5e21a5f + 687bb98 commit 2d097c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/zkp/ecdsa_adaptor.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ impl CPtr for EcdsaAdaptorSignature {
6161
}
6262
}
6363

64+
impl AsRef<[u8]> for EcdsaAdaptorSignature {
65+
fn as_ref(&self) -> &[u8] {
66+
self.0.as_ref()
67+
}
68+
}
69+
6470
impl EcdsaAdaptorSignature {
6571
/// Creates an [`EcdsaAdaptorSignature`] directly from a slice
6672
#[inline]

0 commit comments

Comments
 (0)