File tree Expand file tree Collapse file tree
stacks-common/src/deps_common/bitcoin/network Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,6 +188,15 @@ where
188188
189189/// Deserialize an object from a vector, will error if said deserialization
190190/// doesn't consume the entire vector.
191+ ///
192+ /// # Consensus-critical
193+ ///
194+ /// This function is consensus-critical: it is used to parse sortition-relevant
195+ /// Bitcoin transactions, and is reachable from Clarity contract execution. Any
196+ /// change that causes a given input to produce a different output — including
197+ /// making a previously-parseable transaction unparseable or vice versa (e.g.
198+ /// adopting a new BIP that alters transaction structure) is a consensus change
199+ /// and must be gated behind an epoch boundary.
191200pub fn deserialize < ' a , T > ( data : & ' a [ u8 ] ) -> Result < T , Error >
192201where
193202 T : ConsensusDecodable < RawDecoder < Cursor < & ' a [ u8 ] > > > ,
You can’t perform that action at this time.
0 commit comments