mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
crypto: use interface inheritance instead of inlining its function
This commit is contained in:
parent
e1211c8953
commit
fd7ed1c977
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ type EllipticCurve interface {
|
||||||
// because it doesn't copy the internal state, but also modifies the internal state.
|
// because it doesn't copy the internal state, but also modifies the internal state.
|
||||||
type KeccakState interface {
|
type KeccakState interface {
|
||||||
hash.Hash
|
hash.Hash
|
||||||
Read([]byte) (int, error)
|
io.Reader
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateAddress creates an ethereum address given the bytes and the nonce
|
// CreateAddress creates an ethereum address given the bytes and the nonce
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue