diff --git a/server/protocol/index.md b/server/protocol/index.md index e46a665..f3b6c2e 100644 --- a/server/protocol/index.md +++ b/server/protocol/index.md @@ -53,6 +53,20 @@ const generateKeyPair = async () => { }, ``` +### リクエストbodyの内容 +``` +const body = { + .... +} + +// request body +{ + body: JSON.stringify(body), + signature: await signData(JSON.stringify(body), privateKey), + server: ${serverDomain}, +} +``` + ### 電子署名の流れ 1. リクエスト元サーバーは秘密鍵でリクエストを署名します。