Skip to content

Commit

Permalink
change func
Browse files Browse the repository at this point in the history
  • Loading branch information
Mars-xyx committed Sep 10, 2024
1 parent 9219a44 commit b7f4e4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sharedsecret.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ type Share struct {
x, y *big.Int
}

func (s *Share) GetIndex() big.Int {
return *s.x
func (s *Share) GetIndex() *big.Int {
return s.x
}
func (s *Share) GetValue() big.Int {
return *s.y
func (s *Share) GetValue() *big.Int {
return s.y
}

// New creates n Shares and a secret. k defines the minimum number of shares that should be
Expand Down

0 comments on commit b7f4e4f

Please sign in to comment.