nspcc-dev / neofs-sdk-go

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

Add SignedData() to things that can be signed (have Sign()) #510

Closed roman-khimov closed 1 year ago

roman-khimov commented 1 year ago

Is your feature request related to a problem? Please describe.

I'm always frustrated when I'm looking at #373. One can add some signature generate elsewhere, but he doesn't always have the data to sign since Marshal() is not the same as SignedData() (that exists for object session tokens, for example).

Describe the solution you'd like

Add some methods to serialize data to sign.

Describe alternatives you've considered

Not so much when we need completely detached signatures.

Additional context

373.