frostfs-sdk-go/util/signature
Evgenii Stratonikov 1c7dd03cf5 [#150] signature: Add scheme
Allow `SignOption` to set 2 parameters:
1. Default signature scheme, which is used in case scheme is
   unspecified.
2. Restrict scheme option which also checks that scheme is either
   unspecified or equal to the restricted scheme. This is only used
   for verification and is necessary because some of the signatures
   are used in smart-contracts.

Also provide signature struct to sign/verify functions in helpers.

The constant names differ a bit from those in API because of linter
complaints.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-02-25 12:42:38 +03:00
..
data.go [#150] signature: Add scheme 2022-02-25 12:42:38 +03:00
options.go [#150] signature: Add scheme 2022-02-25 12:42:38 +03:00
util.go [#53] util: move signature package from neofs-api-go 2021-11-08 12:39:45 +03:00