frostfs-api-go/service/v2/signature.go
Alex Vanin 746419e85f Implement signature interface in request headers
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:40:14 +03:00

17 lines
391 B
Go

package v2
func (m *RequestMetaHeader) ReadSignedData(buf []byte) ([]byte, error) {
return m.StableMarshal(buf)
}
func (m *RequestMetaHeader) SignedDataSize() int {
return m.StableSize()
}
func (m *RequestVerificationHeader) ReadSignedData(buf []byte) ([]byte, error) {
return m.StableMarshal(buf)
}
func (m *RequestVerificationHeader) SignedDataSize() int {
return m.StableSize()
}