nspcc-dev / neofs-sdk-go

Go implementation of NeoFS SDK
Apache License 2.0
6 stars 14 forks source link

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

Open roman-khimov opened 3 months ago

roman-khimov commented 3 months ago

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.