Skip to content

Commit dedb187

Browse files
committed
Merge branch 'jl/bytes_trait' of https://github.com/noir-lang/eth-proofs into jl/bytes_trait
2 parents c74d4b3 + 6c1fc0f commit dedb187

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

ethereum/circuits/lib/src/rlp/types.nr

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff 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-
}

0 commit comments

Comments
 (0)