From 746419e85f0621f14a812da16be0038b2d66799e Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 12 Aug 2020 16:19:35 +0300 Subject: [PATCH] Implement signature interface in request headers Signed-off-by: Alex Vanin --- service/v2/signature.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 service/v2/signature.go diff --git a/service/v2/signature.go b/service/v2/signature.go new file mode 100644 index 00000000..5470bea3 --- /dev/null +++ b/service/v2/signature.go @@ -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() +}