Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ serde = { version = "1.0", features = ["derive", "alloc"] }
thiserror = "2.0"

ssz = { package = "ethereum_ssz", version = "0.10.0" }
ssz_derive = { package = "ethereum_ssz_derive", version = "0.10.0" }

p3-field = { git = "https://github.com/Plonky3/Plonky3.git", rev = "a33a312" }
p3-baby-bear = { git = "https://github.com/Plonky3/Plonky3.git", rev = "a33a312" }
Expand Down
2 changes: 0 additions & 2 deletions src/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pub trait Serializable: Serialize + DeserializeOwned + Encode + Decode + Sized {
///
/// A `Vec<u8>` containing the canonical byte representation of this object.
fn to_bytes(&self) -> Vec<u8> {
// TODO: Update this to not use SSZ internally.
self.as_ssz_bytes()
}

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