Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-bitcoin/rust-secp256k1
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9cb3ee460f85cb2b6d99cf7c2564ea2839f9962d
Choose a base ref
..
head repository: rust-bitcoin/rust-secp256k1
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7ae88092a8fbb3cfd7155ae6d65e88f430de6671
Choose a head ref
Showing with 19 additions and 1 deletion.
  1. +18 −0 api/{alloc-only.txt → alloc.txt}
  2. +1 −1 contrib/check-for-api-changes.sh
18 changes: 18 additions & 0 deletions api/alloc-only.txt → api/alloc.txt
Original file line number Diff line number Diff line change
@@ -447,10 +447,14 @@ impl secp256k1_sys::CPtr for secp256k1::PublicKey
impl secp256k1_sys::CPtr for secp256k1::schnorr::Signature
impl secp256k1_sys::CPtr for secp256k1::SecretKey
impl secp256k1_sys::CPtr for secp256k1::XOnlyPublicKey
impl secp256k1::ThirtyTwoByteHash for bitcoin_hashes::sha256d::Hash
impl secp256k1::ThirtyTwoByteHash for bitcoin_hashes::sha256::Hash
impl secp256k1::Verification for secp256k1::All
impl secp256k1::Verification for secp256k1::VerifyOnly
impl secp256k1::XOnlyPublicKey
impl<T: bitcoin_hashes::sha256t::Tag> secp256k1::ThirtyTwoByteHash for bitcoin_hashes::sha256t::Hash<T>
impl<T: secp256k1::ThirtyTwoByteHash> core::convert::From<T> for secp256k1::Message
impl<T: secp256k1::ThirtyTwoByteHash> core::convert::From<T> for secp256k1::SecretKey
#[non_exhaustive] pub struct secp256k1::scalar::OutOfRangeError
pub const secp256k1::All::DESCRIPTION: &'static str
pub const secp256k1::All::FLAGS: secp256k1_sys::types::c_uint
@@ -491,7 +495,11 @@ pub enum secp256k1::Error
pub enum secp256k1::Parity
pub enum secp256k1::SignOnly
pub enum secp256k1::VerifyOnly
pub extern crate secp256k1::hashes
pub fn &'a secp256k1::ecdsa::serialized_signature::SerializedSignature::into_iter(self) -> Self::IntoIter
pub fn bitcoin_hashes::sha256d::Hash::into_32(self) -> [u8; 32]
pub fn bitcoin_hashes::sha256::Hash::into_32(self) -> [u8; 32]
pub fn bitcoin_hashes::sha256t::Hash<T>::into_32(self) -> [u8; 32]
pub fn i32::from(parity: secp256k1::Parity) -> i32
pub fn secp256k1::All::clone(&self) -> secp256k1::All
pub fn secp256k1::All::cmp(&self, other: &secp256k1::All) -> core::cmp::Ordering
@@ -618,6 +626,7 @@ pub fn secp256k1::Keypair::from_seckey_str<C: secp256k1::Signing>(secp: &secp256
pub fn secp256k1::Keypair::from_secret_key<C: secp256k1::Signing>(secp: &secp256k1::Secp256k1<C>, sk: &secp256k1::SecretKey) -> secp256k1::Keypair
pub fn secp256k1::Keypair::from_str(s: &str) -> core::result::Result<Self, Self::Err>
pub fn secp256k1::Keypair::hash<__H: core::hash::Hasher>(&self, state: &mut __H)
pub fn secp256k1::Keypair::new<R: rand::rng::Rng + core::marker::Sized, C: secp256k1::Signing>(secp: &secp256k1::Secp256k1<C>, rng: &mut R) -> secp256k1::Keypair
pub fn secp256k1::Keypair::non_secure_erase(&mut self)
pub fn secp256k1::Keypair::partial_cmp(&self, other: &secp256k1::Keypair) -> core::option::Option<core::cmp::Ordering>
pub fn secp256k1::Keypair::public_key(&self) -> secp256k1::PublicKey
@@ -633,6 +642,7 @@ pub fn secp256k1::Message::eq(&self, other: &secp256k1::Message) -> bool
pub fn secp256k1::Message::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub fn secp256k1::Message::from_digest(digest: [u8; 32]) -> secp256k1::Message
pub fn secp256k1::Message::from_digest_slice(digest: &[u8]) -> core::result::Result<secp256k1::Message, secp256k1::Error>
pub fn secp256k1::Message::from_hashed_data<H: secp256k1::ThirtyTwoByteHash + bitcoin_hashes::Hash>(data: &[u8]) -> Self
pub fn secp256k1::Message::from_slice(digest: &[u8]) -> core::result::Result<secp256k1::Message, secp256k1::Error>
pub fn secp256k1::Message::from(t: T) -> secp256k1::Message
pub fn secp256k1::Message::hash<__H: core::hash::Hasher>(&self, state: &mut __H)
@@ -695,6 +705,7 @@ pub fn secp256k1::scalar::Scalar::from(value: secp256k1::SecretKey) -> Self
pub fn secp256k1::scalar::Scalar::index(&self, index: I) -> &Self::Output
pub fn secp256k1::scalar::Scalar::non_secure_erase(&mut self)
pub fn secp256k1::scalar::Scalar::partial_cmp(&self, other: &secp256k1::scalar::Scalar) -> core::option::Option<core::cmp::Ordering>
pub fn secp256k1::scalar::Scalar::random_custom<R: rand::rng::Rng>(rng: R) -> Self
pub fn secp256k1::scalar::Scalar::to_be_bytes(self) -> [u8; 32]
pub fn secp256k1::scalar::Scalar::to_le_bytes(self) -> [u8; 32]
pub fn secp256k1::schnorr::Signature::as_c_ptr(&self) -> *const Self::Target
@@ -715,16 +726,19 @@ pub fn secp256k1::Secp256k1<C>::ctx(&self) -> core::ptr::non_null::NonNull<secp2
pub fn secp256k1::Secp256k1<C>::drop(&mut self)
pub fn secp256k1::Secp256k1<C>::eq(&self, _other: &secp256k1::Secp256k1<C>) -> bool
pub fn secp256k1::Secp256k1<C>::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub fn secp256k1::Secp256k1<C>::generate_keypair<R: rand::rng::Rng + core::marker::Sized>(&self, rng: &mut R) -> (secp256k1::SecretKey, secp256k1::PublicKey)
pub fn secp256k1::Secp256k1<C>::gen_new() -> secp256k1::Secp256k1<C>
pub fn secp256k1::Secp256k1<C>::preallocated_gen_new(buf: &'buf mut [secp256k1_sys::types::AlignedType]) -> core::result::Result<secp256k1::Secp256k1<C>, secp256k1::Error>
pub fn secp256k1::Secp256k1<C>::preallocate_size_gen() -> usize
pub fn secp256k1::Secp256k1<C>::randomize<R: rand::rng::Rng + core::marker::Sized>(&mut self, rng: &mut R)
pub fn secp256k1::Secp256k1<C>::seeded_randomize(&mut self, seed: &[u8; 32])
pub fn secp256k1::Secp256k1<C>::sign_ecdsa_grind_r(&self, msg: &secp256k1::Message, sk: &secp256k1::SecretKey, bytes_to_grind: usize) -> secp256k1::ecdsa::Signature
pub fn secp256k1::Secp256k1<C>::sign_ecdsa_low_r(&self, msg: &secp256k1::Message, sk: &secp256k1::SecretKey) -> secp256k1::ecdsa::Signature
pub fn secp256k1::Secp256k1<C>::sign_ecdsa(&self, msg: &secp256k1::Message, sk: &secp256k1::SecretKey) -> secp256k1::ecdsa::Signature
pub fn secp256k1::Secp256k1<C>::sign_ecdsa_with_noncedata(&self, msg: &secp256k1::Message, sk: &secp256k1::SecretKey, noncedata: &[u8; 32]) -> secp256k1::ecdsa::Signature
pub fn secp256k1::Secp256k1<C>::sign_schnorr_no_aux_rand(&self, msg: &secp256k1::Message, keypair: &secp256k1::Keypair) -> secp256k1::schnorr::Signature
pub fn secp256k1::Secp256k1<C>::sign_schnorr_with_aux_rand(&self, msg: &secp256k1::Message, keypair: &secp256k1::Keypair, aux_rand: &[u8; 32]) -> secp256k1::schnorr::Signature
pub fn secp256k1::Secp256k1<C>::sign_schnorr_with_rng<R: rand::rng::Rng + rand_core::CryptoRng>(&self, msg: &secp256k1::Message, keypair: &secp256k1::Keypair, rng: &mut R) -> secp256k1::schnorr::Signature
pub fn secp256k1::Secp256k1<C>::verify_ecdsa(&self, msg: &secp256k1::Message, sig: &secp256k1::ecdsa::Signature, pk: &secp256k1::PublicKey) -> core::result::Result<(), secp256k1::Error>
pub fn secp256k1::Secp256k1<C>::verify_schnorr(&self, sig: &secp256k1::schnorr::Signature, msg: &secp256k1::Message, pubkey: &secp256k1::XOnlyPublicKey) -> core::result::Result<(), secp256k1::Error>
pub fn secp256k1::Secp256k1<secp256k1::All>::default() -> Self
@@ -745,15 +759,18 @@ pub fn secp256k1::SecretKey::clone(&self) -> secp256k1::SecretKey
pub fn secp256k1::SecretKey::display_secret(&self) -> DisplaySecret
pub fn secp256k1::SecretKey::eq(&self, other: &Self) -> bool
pub fn secp256k1::SecretKey::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub fn secp256k1::SecretKey::from_hashed_data<H: secp256k1::ThirtyTwoByteHash + bitcoin_hashes::Hash>(data: &[u8]) -> Self
pub fn secp256k1::SecretKey::from_keypair(keypair: &secp256k1::Keypair) -> Self
pub fn secp256k1::SecretKey::from(pair: &'a secp256k1::Keypair) -> Self
pub fn secp256k1::SecretKey::from(pair: secp256k1::Keypair) -> Self
pub fn secp256k1::SecretKey::from_slice(data: &[u8]) -> core::result::Result<secp256k1::SecretKey, secp256k1::Error>
pub fn secp256k1::SecretKey::from_str(s: &str) -> core::result::Result<secp256k1::SecretKey, secp256k1::Error>
pub fn secp256k1::SecretKey::from(t: T) -> secp256k1::SecretKey
pub fn secp256k1::SecretKey::index(&self, index: I) -> &Self::Output
pub fn secp256k1::SecretKey::keypair<C: secp256k1::Signing>(&self, secp: &secp256k1::Secp256k1<C>) -> secp256k1::Keypair
pub fn secp256k1::SecretKey::mul_tweak(self, tweak: &secp256k1::scalar::Scalar) -> core::result::Result<secp256k1::SecretKey, secp256k1::Error>
pub fn secp256k1::SecretKey::negate(self) -> secp256k1::SecretKey
pub fn secp256k1::SecretKey::new<R: rand::rng::Rng + core::marker::Sized>(rng: &mut R) -> secp256k1::SecretKey
pub fn secp256k1::SecretKey::non_secure_erase(&mut self)
pub fn secp256k1::SecretKey::public_key<C: secp256k1::Signing>(&self, secp: &secp256k1::Secp256k1<C>) -> secp256k1::PublicKey
pub fn secp256k1::SecretKey::secret_bytes(&self) -> [u8; 32]
@@ -894,4 +911,5 @@ pub unsafe fn secp256k1::VerifyOnlyPreallocated<'buf>::deallocate(_ptr: *mut u8,
pub unsafe trait secp256k1::Context: private::Sealed
pub unsafe trait secp256k1::PreallocatedContext<'a>
pub use secp256k1::ffi
pub use secp256k1::rand
#[repr(transparent)] pub struct secp256k1::PublicKey(_)
2 changes: 1 addition & 1 deletion contrib/check-for-api-changes.sh
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ fi

pushd "$REPO_DIR" > /dev/null
$CMD --no-default-features | sort --unique > "$API_DIR/no-default-features.txt"
$CMD --no-default-features --features=alloc | sort --unique > "$API_DIR/alloc-only.txt"
$CMD --no-default-features --features=alloc,hashes,rand | sort --unique > "$API_DIR/alloc.txt"
$CMD --all-features | sort --unique > "$API_DIR/all-features.txt"

if [[ $(git status --porcelain api) ]]; then