From fd7ed1c9772240539515b4cd00adbe7e09c68677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Miko=C5=82ajczyk?= Date: Tue, 18 Nov 2025 12:01:56 +0100 Subject: [PATCH] crypto: use interface inheritance instead of inlining its function --- crypto/crypto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/crypto.go b/crypto/crypto.go index 1d575326df..904ce0ce92 100644 --- a/crypto/crypto.go +++ b/crypto/crypto.go @@ -64,7 +64,7 @@ type EllipticCurve interface { // because it doesn't copy the internal state, but also modifies the internal state. type KeccakState interface { hash.Hash - Read([]byte) (int, error) + io.Reader } // CreateAddress creates an ethereum address given the bytes and the nonce