Skip to content

Commit

Permalink
fix(pr): removed unused public key
Browse files Browse the repository at this point in the history
  • Loading branch information
Torsten Egenolf committed Jun 7, 2024
1 parent 8c74b78 commit 33d85b5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions certs/generate_did_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 33d85b5

Please sign in to comment.