OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc10180
)
clean
author
HAOYUatHZ
<haoyu@protonmail.com>
Wed, 19 Jun 2019 06:12:54 +0000
(14:12 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Wed, 19 Jun 2019 06:12:54 +0000
(14:12 +0800)
federation/util/hash.go
[deleted file]
patch
|
blob
|
history
diff --git
a/federation/util/hash.go
b/federation/util/hash.go
deleted file mode 100644
(file)
index
570cb2e
..0000000
--- a/
federation/util/hash.go
+++ /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
-}