Skip to content

Commit d40b5da

Browse files
committed
feat: include leader's public key when adding funds
1 parent f493326 commit d40b5da

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

client-proto/src/nillion_client_proto/nillion/payments/v1/balance/__init__.py

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/nillion_client/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,9 @@ async def add_funds(self, amount_unil: int, target_user: UserId | None = None):
14151415
)
14161416
nonce = secrets.token_bytes(32)
14171417
payload = AddFundsPayload(
1418-
recipient=(target_user or self.user_id).to_proto(), nonce=nonce
1418+
recipient=(target_user or self.user_id).to_proto(),
1419+
nonce=nonce,
1420+
leader_public_key=self.cluster.leader.public_key,
14191421
).SerializeToString()
14201422
payload_hash = hashlib.sha256(payload).digest()
14211423
tx_hash = await self._payer.submit_payment(amount_unil, payload_hash)

uv.lock

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)