commit 9a2d028299bfb72a1ae9c6a7227bb846a1f469fb
parent 0e3dda62be295c3c28b3343f9a143d3d73148906
Author: Yuki Kishimoto <yukikishimoto@protonmail.com>
Date: Mon, 8 Apr 2024 11:47:15 +0200
Fix `Note::sig` method
Change array len from `32` to `64`
Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/note.rs b/src/note.rs
@@ -142,10 +142,10 @@ impl<'a> Note<'a> {
Tags::new(tags, self)
}
- pub fn sig(&self) -> &'a [u8; 32] {
+ pub fn sig(&self) -> &'a [u8; 64] {
unsafe {
let ptr = bindings::ndb_note_sig(self.as_ptr());
- &*(ptr as *const [u8; 32])
+ &*(ptr as *const [u8; 64])
}
}
}