Implement signature interface in request headers

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

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

@ -0,0 +1,17 @@
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()
}