forked from TrueCloudLab/frostfs-api-go
service: implement a function for creating and storing a signature
This commit is contained in:
parent
0ffb1bd61d
commit
f3e6caf7e7
3 changed files with 59 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
package service
|
||||
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
)
|
||||
|
||||
// NodeRole to identify in Bootstrap service.
|
||||
type NodeRole int32
|
||||
|
||||
|
@ -187,3 +191,9 @@ type SignedDataReader interface {
|
|||
// Must behave like Read method of io.Reader and differ only in the reading of the signed data.
|
||||
ReadSignedData([]byte) (int, error)
|
||||
}
|
||||
|
||||
// SignatureKeyAccumulator is an interface of the accumulator of data signatures with keys.
|
||||
type SignatureKeyAccumulator interface {
|
||||
SignedDataSource
|
||||
AddSignKey([]byte, *ecdsa.PublicKey)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue