Skip to content

Commit

Permalink
Merge pull request #338 from privacybydesign/new-keyshare-protocol-ps
Browse files Browse the repository at this point in the history
Chore: make PMap JSON tags consistent with variable names
  • Loading branch information
ivard authored Sep 4, 2023
2 parents c3361f3 + a57b75d commit 1888bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,12 @@ func (ppcm *ProofPCommitmentMap) MarshalJSON() ([]byte, error) {
}

type PMap struct {
Ps map[PublicKeyIdentifier]*big.Int `json:"p"`
Ps map[PublicKeyIdentifier]*big.Int `json:"ps"`
}

func (pm *PMap) MarshalJSON() ([]byte, error) {
var encPM struct {
Ps map[string]*big.Int `json:"p"`
Ps map[string]*big.Int `json:"ps"`
}
encPM.Ps = make(map[string]*big.Int)

Expand Down

0 comments on commit 1888bb8

Please sign in to comment.