Skip to content

Commit

Permalink
rename create_did_pubkey -> encode_did_pubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBuchanan314 committed Sep 26, 2023
1 parent 48e5f12 commit cc4d3df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions create_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from config import HANDLE, PDS_SERVER, PLC_SERVER

def create_did_pubkey(pubkey: ec.EllipticCurvePublicKey):
def encode_did_pubkey(pubkey: ec.EllipticCurvePublicKey):
assert(type(pubkey.curve) is ec.SECP256K1)
compressed_public_bytes = pubkey.public_bytes(
serialization.Encoding.X962,
Expand Down Expand Up @@ -39,10 +39,10 @@ def create_did_pubkey(pubkey: ec.EllipticCurvePublicKey):
genesis = {
"type": "plc_operation",
"rotationKeys": [
create_did_pubkey(pubkey),
encode_did_pubkey(pubkey),
],
"verificationMethods": {
"atproto": create_did_pubkey(pubkey), #XXX should really be separate from rotationKeys
"atproto": encode_did_pubkey(pubkey), #XXX should really be separate from rotationKeys
},
"alsoKnownAs": [
"at://" + HANDLE
Expand Down

0 comments on commit cc4d3df

Please sign in to comment.