We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c96981b commit ecd28c5Copy full SHA for ecd28c5
lightning-c-bindings/src/c_types/mod.rs
@@ -166,6 +166,12 @@ impl BigEndianScalar {
166
}
167
168
169
+#[no_mangle]
170
+/// Convenience function for constructing a new BigEndianScalar
171
+pub extern "C" fn BigEndianScalar_new(big_endian_bytes: ThirtyTwoBytes) -> BigEndianScalar {
172
+ BigEndianScalar { big_endian_bytes: big_endian_bytes.data }
173
+}
174
+
175
#[repr(C)]
176
#[derive(Copy, Clone)]
177
/// Represents an error returned from libsecp256k1 during validation of some secp256k1 data
0 commit comments