frostfs-sdk-go/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
..
test [#54] tests: unify test generator names 2021-12-01 10:34:54 +03:00
signature.go [#150] signature: Add scheme 2022-02-25 12:42:38 +03:00
signature_test.go [#44] signature: move package from neofs-api-go 2021-11-01 17:52:41 +03:00