KOSASIH / Galactic-Chain

Expected 2 blank lines FLK-E302
Style
Minor
4 months ago4 months old
expected 2 blank lines, found 1
 3from cryptography.hazmat.primitives.asymmetric import ec
 4from cryptography.hazmat.backends import default_backend
 5
 6class EllipticCurveArithmetic: 7    def __init__(self):
 8        self.curve = ec.SECP256K1()
 9        self.backend = default_backend()
expected 2 blank lines, found 1
45        transaction = ai_contract_engine.get_transaction(transaction_id)
46        return {"transaction": transaction.to_dict()}
47
48class EllipticCurveAPI(Resource):49    def post(self):
50        # Perform elliptic curve operation
51        operation = request.json["operation"]
expected 2 blank lines, found 1
31        contract = ai_contract_engine.get_contract(contract_name)
32        return {"contract": contract.to_dict()}
33
34class TransactionAPI(Resource):35    def post(self):
36        # Create new transaction
37        sender = request.json["sender"]
expected 2 blank lines, found 1
18    def get(self):
19        return {"message": "Welcome to the Galactic Chain API"}
20
21class SmartContractAPI(Resource):22    def post(self):
23        # Deploy new smart contract
24        contract_code = request.json["contract_code"]
expected 2 blank lines, found 1
14# Load Elliptic Curve Arithmetic
15ecc = EllipticCurveArithmetic()
16
17class GalacticChainAPI(Resource):18    def get(self):
19        return {"message": "Welcome to the Galactic Chain API"}
20