Implement signature interface for container put request

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-08-12 16:19:17 +03:00 committed by Stanislav Bogatyrev
parent 0ae952fcc6
commit 4a6ea486f7

17
container/v2/signature.go Normal file
View file

@ -0,0 +1,17 @@
package v2
func (m *Container) ReadSignedData(buf []byte) ([]byte, error) {
return m.StableMarshal(buf)
}
func (m *Container) SignedDataSize() int {
return m.StableSize()
}
func (m *PutRequest_Body) ReadSignedData(buf []byte) ([]byte, error) {
return m.StableMarshal(buf)
}
func (m *PutRequest_Body) SignedDataSize() int {
return m.StableSize()
}