From da71f471d1b7e4b7e05e0a42d87cc2ccadc9820a Mon Sep 17 00:00:00 2001 From: ChihYunChuang Date: Tue, 15 Nov 2022 09:45:14 +0800 Subject: [PATCH] crypto/tss/ecdsa/cggmp/refresh: add some get-functions of Result --- crypto/tss/ecdsa/cggmp/refresh/round_3.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/crypto/tss/ecdsa/cggmp/refresh/round_3.go b/crypto/tss/ecdsa/cggmp/refresh/round_3.go index 598908b7..8ac21648 100644 --- a/crypto/tss/ecdsa/cggmp/refresh/round_3.go +++ b/crypto/tss/ecdsa/cggmp/refresh/round_3.go @@ -54,6 +54,26 @@ var ( ErrDifferentPoint = errors.New("the two points are different") ) +func (r *Result) GetRefreshShare() *big.Int { + return r.refreshShare +} + +func (r *Result) GetRefreshPaillierKey() *paillier.Paillier { + return r.refreshPaillierKey +} + +func (r *Result) GetRefreshPartialPubKey() map[string]*pt.ECPoint { + return r.refreshPartialPubKey +} + +func (r *Result) GetY() map[string]*pt.ECPoint { + return r.y +} + +func (r *Result) GetPedParameter() map[string]*paillierzkproof.PederssenOpenParameter { + return r.pedParameter +} + func newRound3Handler(r *round2Handler) *round3Handler { return &round3Handler{ round2Handler: r,