Skip to content

Commit

Permalink
spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Sep 20, 2023
1 parent beca698 commit 8aaf0f8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cashu/wallet/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def _splitrequest_include_fields(proofs: List[Proof]):
@async_set_requests
async def check_proof_state(self, proofs: List[Proof]):
"""
Cheks whether the secrets in proofs are already spent or not and returns a list of booleans.
Checks whether the secrets in proofs are already spent or not and returns a list of booleans.
"""
payload = CheckSpendableRequest(proofs=proofs)

Expand Down Expand Up @@ -640,8 +640,8 @@ async def restore_promises(
payload = PostMintRequest(outputs=outputs)
resp = self.s.post(self.url + "/restore", json=payload.dict())
self.raise_on_error(resp)
reponse_dict = resp.json()
returnObj = PostRestoreResponse.parse_obj(reponse_dict)
response_dict = resp.json()
returnObj = PostRestoreResponse.parse_obj(response_dict)
return returnObj.outputs, returnObj.promises


Expand Down Expand Up @@ -795,16 +795,16 @@ async def generate_determinstic_secret(
self, counter: int
) -> Tuple[bytes, bytes, str]:
"""
Determinstically generates two secrets (one as the secret message,
Deterministically generates two secrets (one as the secret message,
one as the blinding factor).
"""
assert self.bip32, "BIP32 not initialized yet."
# integer keyset id modulo max number of bip32 child keys
keyest_id = int.from_bytes(base64.b64decode(self.keyset_id), "big") % (
keyset_id = int.from_bytes(base64.b64decode(self.keyset_id), "big") % (
2**31 - 1
)
logger.trace(f"keyset id: {self.keyset_id} becomes {keyest_id}")
token_derivation_path = f"m/129372'/0'/{keyest_id}'/{counter}'"
logger.trace(f"keyset id: {self.keyset_id} becomes {keyset_id}")
token_derivation_path = f"m/129372'/0'/{keyset_id}'/{counter}'"
# for secret
secret_derivation_path = f"{token_derivation_path}/0"
logger.trace(f"secret derivation path: {secret_derivation_path}")
Expand Down

0 comments on commit 8aaf0f8

Please sign in to comment.