Use iterators for neofs id contract #126

Closed
opened 2025-12-28 18:08:36 +00:00 by sami · 1 comment
Owner

Originally created by @AnnaShaleva on GitHub (Jan 27, 2023).

There's no max constraint for the number of keys that can be bound to the owner ID (so the number of keys completely depends on the owner). Several subsequent successful calls to neofs_contract.go's Bind method with a large batch of keys will result in keys list overflow (currently 2047 keys at max is allowed). We need either to refactor the nspcc-dev/neofs-contract@dc89137484/neofsid/neofsid_contract.go (L196) to return the iterator or to restrict the maximum number of connected keys per owner.

Ref. #304.

Originally created by @AnnaShaleva on GitHub (Jan 27, 2023). There's no max constraint for the number of keys that can be [bound to the owner ID](https://github.com/nspcc-dev/neofs-contract/blob/dc89137484cd042e79378d4745558cc560b6368a/neofsid/neofsid_contract.go#L80) (so the number of keys completely depends on the owner). Several subsequent successful calls to `neofs_contract.go`'s `Bind` method with a large batch of keys will result in keys list overflow (currently 2047 keys at max is allowed). We need either to refactor the https://github.com/nspcc-dev/neofs-contract/blob/dc89137484cd042e79378d4745558cc560b6368a/neofsid/neofsid_contract.go#L196 to return the iterator or to restrict the maximum number of connected keys per owner. Ref. #304.
sami 2025-12-28 18:08:36 +00:00
Author
Owner

@roman-khimov commented on GitHub (Mar 26, 2025):

Obsolete, see #474.

@roman-khimov commented on GitHub (Mar 26, 2025): Obsolete, see #474.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-contract#126
No description provided.