コード例 #1
0
def keccak256(prehash: bytes) -> bytes:
    return _keccak_256(prehash).digest()
コード例 #2
0
 def keccak256(self, prehash: Union[bytearray, bytes]) -> bytes:
     return _keccak_256(prehash).digest()  # type: ignore
コード例 #3
0
 def __init__(self, prehash) -> None:
     self._hash = _keccak_256(prehash)
コード例 #4
0
ファイル: utils.py プロジェクト: kigawas/python-bip44
def keccak_256(b: bytes) -> bytes:
    h = _keccak_256()
    h.update(b)
    return h.digest()