From 8579cb222f269ce490512112f7f2157a7dbabf86 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 27 Feb 2024 04:25:51 +0000 Subject: [PATCH] httpMessageSignaturesImplementationLevel --- .../src/server/NodeinfoServerService.ts | 44 +++---------------- 1 file changed, 6 insertions(+), 38 deletions(-) diff --git a/packages/backend/src/server/NodeinfoServerService.ts b/packages/backend/src/server/NodeinfoServerService.ts index 1b50d71839..3b7ee79ca3 100644 --- a/packages/backend/src/server/NodeinfoServerService.ts +++ b/packages/backend/src/server/NodeinfoServerService.ts @@ -94,44 +94,12 @@ export class NodeinfoServerService { localComments: 0, }, metadata: { - httpMessageSignaturesSupported: [ - { - version: 'draft-ietf-httpbis-message-signatures-02', - /** - * https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures-02#name-initial-contents - */ - algorithms: [ - 'hs2019', - // 'rsa-sha1', [Deprecated] - 'rsa-sha256', - 'hmac-sha256', - 'ecdsa-sha256', - ], - /** - * https://datatracker.ietf.org/doc/html/rfc9421#section-6.2 - */ - hs2019: [ - 'ecdsa-p384-sha384', - 'ed25519', - ], - }, - /** - * rfc9421 algorithms: - * https://datatracker.ietf.org/doc/html/rfc9421#section-6.2 - * Misskeyはnode:crypto.verifyに食わせるだけなので、だいたいなんでもいけるはず - */ - /*{ - version: 'rfc9421', - algorithms: [ - 'rsa-pss-sha512', - 'rsa-v1_5-sha256', - 'hmac-sha256', - 'ecdsa-p256-sha256', - 'ecdsa-p384-sha384', - 'ed25519', - ], - },*/ - ], + /** + * 00: Draft, RSA only + * 01: Draft, Ed25519 suported + * 11: RFC 9421, Ed25519 supported + */ + httpMessageSignaturesImplementationLevel: 1, nodeName: meta.name, nodeDescription: meta.description,