Close the second round of review findings: public_from_private
This commit is contained in:
parent
5a20bae6a6
commit
2d05f72656
@ -37,6 +37,10 @@ def public_bytes(public: PublicKey) -> bytes:
|
||||
)
|
||||
|
||||
|
||||
def public_from_private(private: PrivateKey) -> PublicKey:
|
||||
return private.public_key()
|
||||
|
||||
|
||||
def from_public_bytes(raw: bytes) -> PublicKey:
|
||||
return Ed25519PublicKey.from_public_bytes(raw)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user