func Sign(msg []byte, key dh.Element) []byte { h := hmac.New(sha1.New, []byte(key.String())) return h.Sum(msg) }