[#197] sdk: Rename getters of Signature type

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-16 11:19:03 +03:00 committed by Alex Vanin
parent 2bcbd48972
commit 2afc684313
3 changed files with 9 additions and 9 deletions

View file

@ -19,8 +19,8 @@ func NewSignature() *Signature {
return NewSignatureFromV2(new(refs.Signature))
}
// GetKey sets binary public key.
func (s *Signature) GetKey() []byte {
// Key sets binary public key.
func (s *Signature) Key() []byte {
return (*refs.Signature)(s).GetKey()
}
@ -29,8 +29,8 @@ func (s *Signature) SetKey(v []byte) {
(*refs.Signature)(s).SetKey(v)
}
// GetSign return signature value.
func (s *Signature) GetSign() []byte {
// Sign return signature value.
func (s *Signature) Sign() []byte {
return (*refs.Signature)(s).GetSign()
}