Appease formatter
This commit is contained in:
parent
63c7384e50
commit
59ce5900e0
@ -18,7 +18,6 @@ class VAPIDKeyset(models.Model):
|
|||||||
padding = len(key_str) % 4
|
padding = len(key_str) % 4
|
||||||
key_str += b"=" * padding
|
key_str += b"=" * padding
|
||||||
key = SigningKey.from_string(
|
key = SigningKey.from_string(
|
||||||
urlsafe_b64decode(key_str),
|
urlsafe_b64decode(key_str), curve=NIST256p
|
||||||
curve=NIST256p
|
|
||||||
).get_verifying_key()
|
).get_verifying_key()
|
||||||
return urlsafe_b64encode(b"\x04" + key.to_string()).strip(b"=")
|
return urlsafe_b64encode(b"\x04" + key.to_string()).strip(b"=")
|
||||||
|
Reference in New Issue
Block a user