From 33d85b5f715cc2c242c74e398681aa5f2610c191 Mon Sep 17 00:00:00 2001 From: Torsten Egenolf Date: Fri, 7 Jun 2024 15:11:20 +0200 Subject: [PATCH] fix(pr): removed unused public key --- certs/generate_did_document.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/certs/generate_did_document.py b/certs/generate_did_document.py index ecf9860..4215ebe 100644 --- a/certs/generate_did_document.py +++ b/certs/generate_did_document.py @@ -28,13 +28,6 @@ x = base64.urlsafe_b64encode(x.to_bytes((x.bit_length() + 7) // 8, 'big')).decode().rstrip('=') y = base64.urlsafe_b64encode(y.to_bytes((y.bit_length() + 7) // 8, 'big')).decode().rstrip('=') -# Convert the public key to PEM format and encode it in base64 -public_key_pem = public_key.public_bytes( - encoding=serialization.Encoding.PEM, - format=serialization.PublicFormat.SubjectPublicKeyInfo -) -public_key_pem_b64 = base64.b64encode(public_key_pem).decode() - did_document = { "@context": [ "https://www.w3.org/ns/did/v1",