rust-bitcoin-unsafe-fast/bitcoin/src
Andrew Poelstra 3d6151b9e1
Merge rust-bitcoin/rust-bitcoin#2277: Implement `CompressedPublicKey`
a92d49fe33 Implement `CompressedPublicKey` (Martin Habovstiak)

Pull request description:

  P2WPKH requires keys to be compressed which introduces error handling even in cases when it's statically known that a key is compressed. To avoid it, this change introduces `CompressedPublicKey` which is similar to `PublicKey` except it's statically known to be compressed.

  This also changes relevant code to use `CompressedPublicKey` instead of `PublicKey`.

ACKs for top commit:
  tcharding:
    ACK a92d49fe33
  apoelstra:
    ACK a92d49fe33

Tree-SHA512: ff5ff8f0cf81035f042dd8fdd52a0801f0488aea56f3cdd840663abaf7ac1d25a0339cd8d1b00f1f92878c5bd55881bc1740424683cde0c28539b546f171ed4b
2023-12-14 00:08:46 +00:00
..
address Implement `CompressedPublicKey` 2023-12-12 15:16:16 +01:00
blockdata Merge rust-bitcoin/rust-bitcoin#2277: Implement `CompressedPublicKey` 2023-12-14 00:08:46 +00:00
consensus Merge rust-bitcoin/rust-bitcoin#2278: Fully encapsulate bitcoinconsensus 2023-12-13 15:07:41 +00:00
crypto Merge rust-bitcoin/rust-bitcoin#2277: Implement `CompressedPublicKey` 2023-12-14 00:08:46 +00:00
merkle_tree Remove qualifying path from Read and Write 2023-12-12 11:48:29 +11:00
p2p Remove qualifying path from Read and Write 2023-12-12 11:48:29 +11:00
psbt Remove qualifying path from Read and Write 2023-12-12 11:48:29 +11:00
taproot Remove qualifying path from Read and Write 2023-12-12 11:48:29 +11:00
base58.rs Remove imports of TryFrom and TryInto 2023-11-24 03:52:05 +11:00
bip32.rs Implement `CompressedPublicKey` 2023-12-12 15:16:16 +01:00
bip152.rs Remove qualifying path from Read and Write 2023-12-12 11:48:29 +11:00
bip158.rs Remove qualifying path from Read and Write 2023-12-12 11:48:29 +11:00
error.rs Improve public re-exports 2023-10-31 15:16:47 +11:00
hash_types.rs Add deprecation comment to hash_types module 2023-12-05 15:01:18 +11:00
internal_macros.rs Move impl_asref_push_bytes to internal_macros 2023-12-05 15:01:17 +11:00
lib.rs Merge rust-bitcoin/rust-bitcoin#2277: Implement `CompressedPublicKey` 2023-12-14 00:08:46 +00:00
network.rs Remove imports of TryFrom and TryInto 2023-11-24 03:52:05 +11:00
parse.rs Remove imports of TryFrom and TryInto 2023-11-24 03:52:05 +11:00
policy.rs bitcoin: Remove attribution from all files 2023-05-01 09:22:48 +10:00
pow.rs Move block hash types 2023-12-05 14:57:28 +11:00
serde_utils.rs Depend on hex-conservative 2023-07-21 10:59:46 +10:00
sign_message.rs Implement `CompressedPublicKey` 2023-12-12 15:16:16 +01:00
string.rs Make error types uniform 2023-10-04 15:15:52 +11:00
test_macros.rs bitcoin: Remove attribution from all files 2023-05-01 09:22:48 +10:00