|
|
@@ -48,15 +48,15 @@ func Sign(parameters map[string]string, apiKey string, fn func() hash.Hash) stri
|
|
|
buf = append(buf, '&')
|
|
|
h.Write(buf)
|
|
|
}
|
|
|
- fmt.Printf("----bufs1 %s", buf)
|
|
|
|
|
|
buf = buf[:0]
|
|
|
- fmt.Printf("----bufs2 %s", buf)
|
|
|
|
|
|
buf = append(buf, "key="...)
|
|
|
buf = append(buf, apiKey...)
|
|
|
h.Write(buf)
|
|
|
|
|
|
+ fmt.Printf("----bufs2 %v", &buf)
|
|
|
+ fmt.Printf("----hhhhh %v", h)
|
|
|
signature := make([]byte, h.Size()*2)
|
|
|
hex.Encode(signature, h.Sum(nil))
|
|
|
return string(bytes.ToUpper(signature))
|