X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=crypto%2Fcrypto.go;h=cd330372fb22c2ce7d18181e246c84b19ba696f3;hb=a85670d48d75303a3c015389a7a6a0368eb97355;hp=3e21460c646ca4a896666feac7dbb5c06fc5061a;hpb=a542c7c4d70403226f823a904585953b36a987fb;p=bytom%2Fbytom.git diff --git a/crypto/crypto.go b/crypto/crypto.go index 3e21460c..cd330372 100644 --- a/crypto/crypto.go +++ b/crypto/crypto.go @@ -48,26 +48,3 @@ func Ripemd160(data []byte) []byte { return ripemd.Sum(nil) } - - -func zeroBytes(bytes []byte) { - for i := range bytes { - bytes[i] = 0 - } -} - -func toInt(bytes []byte) []int { - ints := make([]int, len(bytes)) - for i := range bytes { - ints[i] = int(bytes[i]) - } - return ints -} - -func toBytes(ints []int) []byte { - bytes := make([]byte, len(ints)) - for i := range ints { - bytes[i] = byte(ints[i]) - } - return bytes -}