mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-10 07:48:19 -05:00
feat(stateless): make UncompressedPublicKey serializable (#19115)
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
This commit is contained in:
@@ -433,7 +433,11 @@ where
|
||||
.map(|(i, tx)| {
|
||||
tx.signature()
|
||||
.recover_from_prehash(&tx.signature_hash())
|
||||
.map(|keys| keys.to_encoded_point(false).as_bytes().try_into().unwrap())
|
||||
.map(|keys| {
|
||||
UncompressedPublicKey(
|
||||
keys.to_encoded_point(false).as_bytes().try_into().unwrap(),
|
||||
)
|
||||
})
|
||||
.map_err(|e| format!("failed to recover signature for tx #{i}: {e}").into())
|
||||
})
|
||||
.collect::<Result<Vec<UncompressedPublicKey>, _>>()
|
||||
|
||||
Reference in New Issue
Block a user