From 43cc2326e801c1141833c5fbe4a4e38d0aeccd9a Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Sun, 8 Oct 2023 21:31:04 +0200 Subject: [PATCH] consensus: make inner bytes in hash types public to allow match patterns --- consensus/src/hashtypes.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/consensus/src/hashtypes.rs b/consensus/src/hashtypes.rs index dd6518bb..f66f20f1 100644 --- a/consensus/src/hashtypes.rs +++ b/consensus/src/hashtypes.rs @@ -35,7 +35,7 @@ use crate::LIB_NAME_BITCOIN; pub struct PubkeyHash( #[from] #[from([u8; 20])] - Bytes20, + pub Bytes20, ); impl From for [u8; 20] { @@ -54,7 +54,7 @@ impl From for [u8; 20] { pub struct ScriptHash( #[from] #[from([u8; 20])] - Bytes20, + pub Bytes20, ); impl From for [u8; 20] { @@ -73,7 +73,7 @@ impl From for [u8; 20] { pub struct WPubkeyHash( #[from] #[from([u8; 20])] - Bytes20, + pub Bytes20, ); impl From for [u8; 20] { @@ -92,7 +92,7 @@ impl From for [u8; 20] { pub struct WScriptHash( #[from] #[from([u8; 32])] - Bytes32, + pub Bytes32, ); impl From for [u8; 32] {