Don't use []byte for public keys and accounts #231

Open
opened 2025-12-28 18:07:30 +00:00 by sami · 0 comments
Owner

Originally created by @roman-khimov on GitHub (Aug 5, 2024).

I'm always frustrated when people have to think about some structure serialization. APIs should use more specific types than just []byte because almost everything can be expressed as []byte while we expect some specific things here and there.

Describe the solution you'd like

Use *keys.PublicKey, use user.ID.

Originally created by @roman-khimov on GitHub (Aug 5, 2024). ## Is your feature request related to a problem? Please describe. I'm always frustrated when people have to think about some structure serialization. APIs should use more specific types than just `[]byte` because almost everything can be expressed as `[]byte` while we expect some specific things here and there. ## Describe the solution you'd like Use `*keys.PublicKey`, use `user.ID`.
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-sdk-go#231
No description provided.