Implement signature interface in request headers
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
4a6ea486f7
commit
746419e85f
1 changed files with 17 additions and 0 deletions
17
service/v2/signature.go
Normal file
17
service/v2/signature.go
Normal 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()
|
||||
}
|
Loading…
Reference in a new issue