Skip to content

Commit

Permalink
Comment and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyashton committed Dec 17, 2024
1 parent 57a78b5 commit 617f280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/src/ccf/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from ccf.cose import validate_cose_sign1
import ccf.receipt
from hashlib import sha256
import functools

GCM_SIZE_TAG = 16
GCM_SIZE_IV = 12
Expand Down Expand Up @@ -162,6 +161,7 @@ class PublicDomain:
def __init__(self, buffer: bytes):
self._entry_type = EntryType(buffer[0])

# Already read a 1-byte entry-type, so start from 1 not 0
self._cursor = 1
self._buffer = buffer

Expand Down Expand Up @@ -632,7 +632,7 @@ def get_size():


class Entry:
_file: Optional[BinaryIO] = None
_file: BinaryIO
_header: TransactionHeader
_public_domain_size: int = 0
_public_domain: Optional[PublicDomain] = None
Expand Down

0 comments on commit 617f280

Please sign in to comment.