|
@@ -48,10 +48,13 @@ func Sign(parameters map[string]string, apiKey string, fn func() hash.Hash) stri
|
|
|
buf = append(buf, '&')
|
|
buf = append(buf, '&')
|
|
|
h.Write(buf)
|
|
h.Write(buf)
|
|
|
}
|
|
}
|
|
|
|
|
+ fmt.Printf("----bufs1 %s", buf)
|
|
|
|
|
+
|
|
|
buf = buf[:0]
|
|
buf = buf[:0]
|
|
|
|
|
+ fmt.Printf("----bufs2 %s", buf)
|
|
|
|
|
+
|
|
|
buf = append(buf, "key="...)
|
|
buf = append(buf, "key="...)
|
|
|
buf = append(buf, apiKey...)
|
|
buf = append(buf, apiKey...)
|
|
|
- fmt.Printf("----bufs %s", buf)
|
|
|
|
|
h.Write(buf)
|
|
h.Write(buf)
|
|
|
|
|
|
|
|
signature := make([]byte, h.Size()*2)
|
|
signature := make([]byte, h.Size()*2)
|