docs(channels): 修正 6 处指向已不存在 design/08 节号的注释(只改注释)
This commit is contained in:
1 parent
91a3209c9b
commit
e792baa316
5 files changed
+12
-10
No files matched your search
@@ -95,7 +95,7 @@ func jsonBody(v any) []byte {
|
||||
func inlineJSON(v any) json.RawMessage { return json.RawMessage(jsonBody(v)) }
|
||||
|
||||
// encodeToken 构造一个 base64 bot_token,其末尾字节是已知密钥,使 deriveInboundKey
|
||||
// 得到确定性的 AES 密钥(design/08 §3.3)。
|
||||
// 得到确定性的 AES 密钥(见 design/08 §4 的 weixin-ilink 条目;旧 §3.3 口径已作废)。
|
||||
func encodeToken(key []byte) string {
|
||||
return base64.StdEncoding.EncodeToString(append([]byte("prefix!"), key...))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user