Skip to content

Commit 1f87639

Browse files
authored
ssz: small touchups (#19)
1 parent f10dcbe commit 1f87639

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ serde = { version = "1.0", features = ["derive", "alloc"] }
4040
thiserror = "2.0"
4141

4242
ssz = { package = "ethereum_ssz", version = "0.10.0" }
43-
ssz_derive = { package = "ethereum_ssz_derive", version = "0.10.0" }
4443

4544
p3-field = { git = "https://github.com/Plonky3/Plonky3.git", rev = "a33a312" }
4645
p3-baby-bear = { git = "https://github.com/Plonky3/Plonky3.git", rev = "a33a312" }

src/serialization.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ pub trait Serializable: Serialize + DeserializeOwned + Encode + Decode + Sized {
1616
///
1717
/// A `Vec<u8>` containing the canonical byte representation of this object.
1818
fn to_bytes(&self) -> Vec<u8> {
19-
// TODO: Update this to not use SSZ internally.
2019
self.as_ssz_bytes()
2120
}
2221

@@ -37,7 +36,6 @@ pub trait Serializable: Serialize + DeserializeOwned + Encode + Decode + Sized {
3736
/// - `Ok(Self)` if the bytes represent a valid object
3837
/// - `Err(DecodeError)` if the bytes are malformed or invalid
3938
fn from_bytes(bytes: &[u8]) -> Result<Self, DecodeError> {
40-
// TODO: Update this to not use SSZ internally.
4139
Self::from_ssz_bytes(bytes)
4240
}
4341
}

0 commit comments

Comments
 (0)