From ec2c6e32f3b892ff00f8072a44469e2c1da7785b Mon Sep 17 00:00:00 2001 From: Alessandro Date: Thu, 14 May 2026 16:41:50 +0200 Subject: [PATCH 1/2] Return packed availability claim payloads --- .../business/oracle_management/oracle_api.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/extensions/business/oracle_management/oracle_api.py b/extensions/business/oracle_management/oracle_api.py index 37451eb0..20dc14cb 100644 --- a/extensions/business/oracle_management/oracle_api.py +++ b/extensions/business/oracle_management/oracle_api.py @@ -182,9 +182,12 @@ def __eth_to_internal(self, eth_node_address): def __get_signed_data(self, node_addr : str, epochs : list, epochs_vals : list, sign=True, node_addr_eth=None): """ - Sign the given data using the blockchain engine. - Returns the signature. - Use the data param as it will be modified in place. + Sign the requested node availability range using the blockchain engine. + + The EVM signature covers the compact claim payload: + ``node_eth_address, from_epoch, to_epoch, packed_availabilities``. The + response also keeps the expanded ``epochs`` and ``epochs_vals`` lists so + API consumers can inspect the oracle data that was packed. Parameters ---------- @@ -209,9 +212,15 @@ def __get_signed_data(self, node_addr : str, epochs : list, epochs_vals : list, ) eth_signature = res["signature"] inputs = res["eth_signed_data"] + from_epoch = res["from_epoch"] + to_epoch = res["to_epoch"] + packed_availabilities = res["packed_availabilities"] else: eth_signature = [] inputs = [] + from_epoch = epochs[0] if len(epochs) > 0 else None + to_epoch = epochs[-1] if len(epochs) > 0 else None + packed_availabilities = "0x" eth_signatures = [eth_signature] eth_addresses = [self.bc.eth_address] @@ -226,6 +235,9 @@ def __get_signed_data(self, node_addr : str, epochs : list, epochs_vals : list, 'node_alias': node_alias, 'epochs': epochs, 'epochs_vals': epochs_vals, + 'from_epoch': from_epoch, + 'to_epoch': to_epoch, + 'packed_availabilities': packed_availabilities, 'eth_signed_data' : { "input" : inputs, From 2df5d7f32182e02056e5be8fc4e7691c0e5e1b7a Mon Sep 17 00:00:00 2001 From: Alessandro Date: Thu, 14 May 2026 17:11:30 +0200 Subject: [PATCH 2/2] chore: inc ver --- ver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ver.py b/ver.py index bff8716a..c4106a1d 100644 --- a/ver.py +++ b/ver.py @@ -1 +1 @@ -__VER__ = '2.10.218' +__VER__ = '2.10.219'