aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-21 00:27:26 +0800
committerobscuren <geffobscura@gmail.com>2014-03-21 00:27:26 +0800
commitc642094cac6ee6fb0215d7510cc57a719c2a2689 (patch)
treecca9371885a4f613b78bd37e9b1c4de213a4b26d
parent3520771d68df1e9becfb29cc2f85d7042f3fb9d1 (diff)
downloaddexon-c642094cac6ee6fb0215d7510cc57a719c2a2689.tar
dexon-c642094cac6ee6fb0215d7510cc57a719c2a2689.tar.gz
dexon-c642094cac6ee6fb0215d7510cc57a719c2a2689.tar.bz2
dexon-c642094cac6ee6fb0215d7510cc57a719c2a2689.tar.lz
dexon-c642094cac6ee6fb0215d7510cc57a719c2a2689.tar.xz
dexon-c642094cac6ee6fb0215d7510cc57a719c2a2689.tar.zst
dexon-c642094cac6ee6fb0215d7510cc57a719c2a2689.zip
Added encoder interface
-rw-r--r--ethutil/rlp.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethutil/rlp.go b/ethutil/rlp.go
index e633f5f1d..33ec0d359 100644
--- a/ethutil/rlp.go
+++ b/ethutil/rlp.go
@@ -9,6 +9,10 @@ import (
"math/big"
)
+type RlpEncodable interface {
+ RlpEncode() []byte
+}
+
type RlpEncoder struct {
rlpData []byte
}