unused pkg

This commit is contained in:
Roy Crihfield 2023-03-30 23:26:04 +08:00 committed by i-norden
parent 33e3d2f0ec
commit ed5238a742

View File

@ -1,36 +0,0 @@
package ipld
import (
"github.com/ethereum/go-ethereum/statediff/indexer/ipld"
"github.com/ipfs/go-cid"
"github.com/multiformats/go-multihash"
)
const (
RawBinary = ipld.RawBinary
MEthHeader = ipld.MEthHeader
MEthHeaderList = ipld.MEthHeaderList
MEthTxTrie = ipld.MEthTxTrie
MEthTx = ipld.MEthTx
MEthTxReceiptTrie = ipld.MEthTxReceiptTrie
MEthTxReceipt = ipld.MEthTxReceipt
MEthStateTrie = ipld.MEthStateTrie
MEthAccountSnapshot = ipld.MEthAccountSnapshot
MEthStorageTrie = ipld.MEthStorageTrie
MEthLogTrie = ipld.MEthLogTrie
MEthLog = ipld.MEthLog
)
var RawdataToCid = ipld.RawdataToCid
// var Keccak256ToCid = ipld.Keccak256ToCid
// // Keccak256ToCid converts keccak256 hash bytes into a v1 cid
// // (non-panicking function)
// func Keccak256ToCid(hash []byte, codecType uint64) (cid.Cid, error) {
// mh, err := multihash.Encode(hash, multihash.KECCAK_256)
// if err != nil {
// return cid.Cid{}, err
// }
// return cid.NewCidV1(codecType, mh), nil
// }