Skip to content

Commit 6fbb059

Browse files
committed
lib: Add Silent Payments module
1 parent ac90bf3 commit 6fbb059

File tree

3 files changed

+560
-0
lines changed

3 files changed

+560
-0
lines changed

src/constants.rs

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ pub const KEY_PAIR_SIZE: usize = 96;
3333
/// The size of a full ElligatorSwift encoding.
3434
pub const ELLSWIFT_ENCODING_SIZE: usize = 64;
3535

36+
/// The size of a silent payments public data object.
37+
pub const SILENT_PAYMENTS_PUBLIC_DATA_SIZE: usize = 98;
38+
3639
/// The Prime for the secp256k1 field element.
3740
#[rustfmt::skip]
3841
pub const FIELD_SIZE: [u8; 32] = [

src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,15 @@ pub mod constants;
166166
pub mod ecdh;
167167
pub mod ecdsa;
168168
pub mod ellswift;
169+
pub mod silentpayments;
169170
pub mod scalar;
170171
pub mod schnorr;
171172
#[cfg(feature = "serde")]
172173
mod serde_util;
173174

175+
// expose ffi::SilentpaymentsLabelLookupFunction
176+
pub use ffi::SilentpaymentsLabelLookupFunction;
177+
174178
use core::marker::PhantomData;
175179
use core::ptr::NonNull;
176180
use core::{fmt, mem, str};

0 commit comments

Comments
 (0)