frostfs-sdk-go/reputation
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 [#93] Remove golang.org/x/crypto dependency 2021-12-14 15:27:04 +03:00
peer.go [#55] reputation: move package from neofs-api-go 2021-11-09 09:54:09 +03:00
peer_test.go [#54] tests: unify test generator names 2021-12-01 10:34:54 +03:00
trust.go [#150] signature: Add scheme 2022-02-25 12:42:38 +03:00
trust_test.go [#54] tests: unify test generator names 2021-12-01 10:34:54 +03:00