Skip to content

Commit e3aa0f4

Browse files
committed
Drop SSZ support
1 parent 050019e commit e3aa0f4

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,3 @@ serde_yaml = "0.8"
1616
log = "0.4"
1717
env_logger = "0.7"
1818
primitive-types = "0.6"
19-
ssz = "0.1.2"
20-
ssz-derive = "0.1.2"

src/main.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@ extern crate wasmi;
33
#[macro_use]
44
extern crate log;
55
extern crate env_logger;
6-
extern crate ssz;
7-
#[macro_use]
8-
extern crate ssz_derive;
96

107
use primitive_types::U256;
118
use rustc_hex::{FromHex, ToHex};
129
use serde::{Deserialize, Serialize};
13-
use ssz::{Decode, Encode};
1410
use std::convert::{TryFrom, TryInto};
1511
use std::env;
1612
use std::error::Error;
@@ -536,10 +532,10 @@ impl<'a> ModuleImportResolver for DebugImportResolver {
536532
const BYTES_PER_SHARD_BLOCK_BODY: usize = 16384;
537533
const ZERO_HASH: Bytes32 = Bytes32 { bytes: [0u8; 32] };
538534

539-
#[derive(Default, PartialEq, Clone, Debug, Ssz)]
535+
#[derive(Default, PartialEq, Clone, Debug)]
540536
pub struct Hash([u8; 32]);
541537

542-
#[derive(Clone, Ssz)]
538+
#[derive(Clone)]
543539
pub struct BLSPubKey([u8; 48]);
544540

545541
impl PartialEq for BLSPubKey {
@@ -560,7 +556,7 @@ impl fmt::Debug for BLSPubKey {
560556
}
561557
}
562558

563-
#[derive(Clone, Ssz)]
559+
#[derive(Clone)]
564560
pub struct BLSSignature([u8; 96]);
565561

566562
impl PartialEq for BLSSignature {
@@ -584,7 +580,7 @@ impl fmt::Debug for BLSSignature {
584580
/// These are Phase 0 structures.
585581
/// https://github.com/ethereum/eth2.0-specs/blob/dev/specs/core/0_beacon-chain.md
586582
/// basically this is a little-endian tightly packed representation of those fields.
587-
#[derive(Default, PartialEq, Clone, Debug, Ssz)]
583+
#[derive(Default, PartialEq, Clone, Debug)]
588584
pub struct Deposit {
589585
pubkey: BLSPubKey,
590586
withdrawal_credentials: Hash,

0 commit comments

Comments
 (0)