beyond-blockchain/bbc1

File digest in BBcAsset must be full length

Closed this issue · 1 comments

quvox commented

In bbclib_asset.py, asset_file_digest is cut off based on id_length as follows:

self.asset_file_digest = hashlib.sha256(bytes(asset_file)).digest()[:self.id_length]

The digest is not ID, so it must not be cut off.

quvox commented

Fixed in the commit ID 3059a85