From 72d8e3de8b61c902cebf29a7bec348ea9b425173 Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Tue, 19 Mar 2019 15:11:55 +0100 Subject: [PATCH] return pubkey from signature data --- types/signature.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/signature.go b/types/signature.go index 1a28053..bd435e7 100644 --- a/types/signature.go +++ b/types/signature.go @@ -51,6 +51,10 @@ func ParseSignature(message, resp []byte) (*Signature, error) { }, nil } +func (s *Signature) PubKey() []byte { + return s.pubKey +} + func (s *Signature) R() []byte { return s.r }