Onionr/src/onionrblocks/blockdecrypt.py

12 lines
280 B
Python
Raw Normal View History

2020-11-02 01:31:11 +00:00
import ujson
import nacl.utils
from nacl.public import PrivateKey, SealedBox
from .blockmetadata import get_block_metadata_from_data
def block_decrypt(raw_block) -> DecryptedBlock:
block_header, user_meta, block_data = get_block_metadata_from_data(
raw_block)