File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
ethereum/circuits/lib/src/rlp Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -127,32 +127,3 @@ impl<let MAX_FIELD_VALUE_LEN: u32> ToRlpFragment<MAX_FIELD_VALUE_LEN> for Fragme
127127 self
128128 }
129129}
130-
131- // Implementations for numeric types using ToBEBytes
132- trait ToBEBytes <let N : u32 > {
133- fn to_bytes (self ) -> BoundedVec <u8 , N >;
134- }
135-
136- impl ToBEBytes <1 > for u8 {
137- fn to_bytes (self ) -> BoundedVec <u8 , 1 > {
138- byte_value ::<1 >([self ])
139- }
140- }
141-
142- impl ToBEBytes <4 > for u32 {
143- fn to_bytes (self ) -> BoundedVec <u8 , 4 > {
144- byte_value ::<4 >((self as Field ).to_be_bytes ::<4 >())
145- }
146- }
147-
148- impl ToBEBytes <8 > for u64 {
149- fn to_bytes (self ) -> BoundedVec <u8 , 8 > {
150- byte_value ::<8 >((self as Field ).to_be_bytes ::<8 >())
151- }
152- }
153-
154- impl ToBEBytes <16 > for u128 {
155- fn to_bytes (self ) -> BoundedVec <u8 , 16 > {
156- byte_value ::<16 >((self as Field ).to_be_bytes ::<16 >())
157- }
158- }
You can’t perform that action at this time.
0 commit comments