File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -704,11 +704,11 @@ impl ControlBlock {
704
704
///
705
705
/// # Errors
706
706
///
707
- /// - `TaprootError::InvalidControlBlockSize` if `sl` is not of size 1 + 32 + 32N for any N >= 0.
708
- /// - `TaprootError::InvalidParity` if first byte of `sl` is not a valid output key parity.
709
- /// - `TaprootError::InvalidTaprootLeafVersion` if first byte of `sl` is not a valid leaf version.
710
- /// - `TaprootError::InvalidInternalKey` if internal key is invalid (first 32 bytes after the parity byte).
711
- /// - `TaprootError::InvalidMerkleTreeDepth` if merkle tree is too deep (more than 128 levels).
707
+ /// - [ `TaprootError::InvalidControlBlockSize`] if `sl` is not of size 1 + 32 + 32N for any N >= 0.
708
+ /// - [ `TaprootError::InvalidParity`] if first byte of `sl` is not a valid output key parity.
709
+ /// - [ `TaprootError::InvalidTaprootLeafVersion`] if first byte of `sl` is not a valid leaf version.
710
+ /// - [ `TaprootError::InvalidInternalKey`] if internal key is invalid (first 32 bytes after the parity byte).
711
+ /// - [ `TaprootError::InvalidMerkleTreeDepth`] if merkle tree is too deep (more than 128 levels).
712
712
pub fn from_slice ( sl : & [ u8 ] ) -> Result < ControlBlock , TaprootError > {
713
713
if sl. len ( ) < TAPROOT_CONTROL_BASE_SIZE
714
714
|| ( sl. len ( ) - TAPROOT_CONTROL_BASE_SIZE ) % TAPROOT_CONTROL_NODE_SIZE != 0
You can’t perform that action at this time.
0 commit comments