Skip to content

Commit 78de4a7

Browse files
committed
rename: Signature to XmssSignature
1 parent a8af346 commit 78de4a7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/lean_spec/subspecs/xmss/aggregation.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
from lean_multisig_py import setup_prover, setup_verifier
1414
from lean_multisig_py import verify_aggregated_signatures as verify_aggregated_signatures_py
1515

16-
from lean_spec.subspecs.xmss.containers import PublicKey, Signature
16+
from lean_spec.subspecs.xmss.containers import PublicKey
17+
from lean_spec.subspecs.xmss.containers import Signature as XmssSignature
1718
from lean_spec.types import Uint64
1819

1920

@@ -25,9 +26,11 @@ class LeanMultisigAggregationError(LeanMultisigError):
2526
"""Raised when lean-multisig fails to aggregate or verify signatures."""
2627

2728

29+
# This function will change for recursive aggregation
30+
# which might additionally require hints.
2831
def aggregate_signatures(
2932
public_keys: Sequence[PublicKey],
30-
signatures: Sequence[Signature],
33+
signatures: Sequence[XmssSignature],
3134
message: bytes,
3235
epoch: Uint64,
3336
) -> bytes:
@@ -65,6 +68,8 @@ def aggregate_signatures(
6568
raise LeanMultisigAggregationError(f"lean-multisig aggregation failed: {exc}") from exc
6669

6770

71+
# This function will change for recursive aggregation verification
72+
# which might additionally require hints.
6873
def verify_aggregated_payload(
6974
public_keys: Sequence[PublicKey],
7075
payload: bytes,

0 commit comments

Comments
 (0)