From 4a6ea486f7a9774bb0b9059f9d44df6e189438d7 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 12 Aug 2020 16:19:17 +0300 Subject: [PATCH] Implement signature interface for container put request Signed-off-by: Alex Vanin --- container/v2/signature.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 container/v2/signature.go diff --git a/container/v2/signature.go b/container/v2/signature.go new file mode 100644 index 0000000..ca19ee6 --- /dev/null +++ b/container/v2/signature.go @@ -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() +}