Skip to content

Commit

Permalink
remove unused blob method convertion
Browse files Browse the repository at this point in the history
  • Loading branch information
musitdev committed Feb 26, 2025
1 parent b688dba commit 98b3323
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions protocol-units/da/movement/protocol/util/src/blob/ir/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,28 +79,4 @@ pub mod block {
Ok(Self::now(blob))
}
}

impl<C> TryFrom<block::Id> for InnerSignedBlobV1Data<C>
where
C: Curve + Verify<C> + Digester<C>,
{
type Error = anyhow::Error;

fn try_from(id: block::Id) -> Result<Self, Self::Error> {
let blob = id.as_bytes().to_vec();
Ok(Self::now(blob))
}
}

impl<C> TryFrom<Vec<block::Id>> for InnerSignedBlobV1Data<C>
where
C: Curve + Verify<C> + Digester<C>,
{
type Error = anyhow::Error;

fn try_from(ids: Vec<block::Id>) -> Result<Self, Self::Error> {
let blob = bcs::to_bytes(&ids)?;
Ok(Self::now(blob))
}
}
}

0 comments on commit 98b3323

Please sign in to comment.