File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -175,16 +175,16 @@ def encode_base62(num: int) -> str:
175175
176176@ignore_docs
177177def create_hmac_signature (secret_key : str , message : str ) -> str :
178- """Generates an HMAC signature and encodes it using Base62. Base62 encoding reduces the signature length.
178+ """Generate an HMAC signature and encodes it using Base62. Base62 encoding reduces the signature length.
179179
180180 HMAC signature is truncated to 30 characters to make it shorter.
181181
182182 Args:
183- secret_key (str) : Secret key used for signing signatures
184- message (str) : Message to be signed
183+ secret_key: Secret key used for signing signatures.
184+ message: Message to be signed.
185185
186186 Returns:
187- str: Base62 encoded signature
187+ Base62 encoded signature.
188188 """
189189 signature = hmac .new (secret_key .encode ('utf-8' ), message .encode ('utf-8' ), hashlib .sha256 ).hexdigest ()[:30 ]
190190
You can’t perform that action at this time.
0 commit comments