mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 22:50:54 +00:00
Enforce pre-summary newline in docstrings
This commit is contained in:
@ -56,7 +56,8 @@ class RSAPrivateKey(PrivateKey):
|
||||
|
||||
|
||||
def create_new_key_pair(bits: int = 2048, e: int = 65537) -> KeyPair:
|
||||
"""Returns a new RSA keypair with the requested key size (``bits``) and the
|
||||
"""
|
||||
Returns a new RSA keypair with the requested key size (``bits``) and the
|
||||
given public exponent ``e``.
|
||||
|
||||
Sane defaults are provided for both values.
|
||||
|
||||
@ -61,7 +61,8 @@ class Secp256k1PrivateKey(PrivateKey):
|
||||
|
||||
|
||||
def create_new_key_pair(secret: bytes = None) -> KeyPair:
|
||||
"""Returns a new Secp256k1 keypair derived from the provided ``secret``, a
|
||||
"""
|
||||
Returns a new Secp256k1 keypair derived from the provided ``secret``, a
|
||||
sequence of bytes corresponding to some integer between 0 and the group
|
||||
order.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user