Add stable marshal of meta & verify headers

It uses unstable implementation for now.

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

21
service/v2/marshal.go Normal file
View file

@ -0,0 +1,21 @@
package v2
func (m *RequestMetaHeader) StableMarshal(buf []byte) ([]byte, error) {
// fixme: implement stable
return m.Marshal()
}
func (m *RequestMetaHeader) StableSize() int {
// fixme: implement stable
return m.Size()
}
func (m *RequestVerificationHeader) StableMarshal(buf []byte) ([]byte, error) {
// fixme: implement stable
return m.Marshal()
}
func (m *RequestVerificationHeader) StableSize() int {
// fixme: implement stable
return m.Size()
}