OSDN Git Service

clean
authorHAOYUatHZ <haoyu@protonmail.com>
Wed, 19 Jun 2019 06:12:54 +0000 (14:12 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Wed, 19 Jun 2019 06:12:54 +0000 (14:12 +0800)
federation/util/hash.go [deleted file]

diff --git a/federation/util/hash.go b/federation/util/hash.go
deleted file mode 100644 (file)
index 570cb2e..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-package util
-
-import (
-       "encoding/hex"
-
-       "github.com/vapor/errors"
-       "github.com/vapor/protocol/bc"
-)
-
-func stringToAssetID(s string) (*bc.AssetID, error) {
-       h, err := hex.DecodeString(s)
-       if err != nil {
-               return nil, errors.Wrap(err, "decode asset string")
-       }
-
-       var b [32]byte
-       copy(b[:], h)
-       assetID := bc.NewAssetID(b)
-       return &assetID, nil
-}