forked from TrueCloudLab/frostfs-sdk-go
[#64] object/test: reuse checksum and signature generators
These were missing from #53. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
39d3317ef6
commit
d6b72453fc
3 changed files with 41 additions and 6 deletions
15
signature/test/generate.go
Normal file
15
signature/test/generate.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package test
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/neofs-sdk-go/signature"
|
||||
)
|
||||
|
||||
// Signature returns random pkg.Signature.
|
||||
func Signature() *signature.Signature {
|
||||
x := signature.New()
|
||||
|
||||
x.SetKey([]byte("key"))
|
||||
x.SetSign([]byte("sign"))
|
||||
|
||||
return x
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue