Skip to content

Commit 5af6507

Browse files
committed
update naming
1 parent a133168 commit 5af6507

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mix.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@ func (ma *MixAddress) RequestOrGenerateGhostKeys(ctx context.Context, outputInde
167167
seed := make([]byte, 64)
168168
crypto.ReadRand(seed)
169169
r := crypto.NewKeyFromSeed(seed)
170-
gkr := &GhostKeys{
170+
gk := &GhostKeys{
171171
Mask: r.Public().String(),
172172
Keys: make([]string, len(ma.xinMembers)),
173173
}
174174
for i, a := range ma.xinMembers {
175175
k := crypto.DeriveGhostPublicKey(&r, &a.PublicViewKey, &a.PublicSpendKey, uint64(outputIndex))
176-
gkr.Keys[i] = k.String()
176+
gk.Keys[i] = k.String()
177177
}
178-
return gkr, nil
178+
return gk, nil
179179
}
180180

181181
hint := uuid.Must(uuid.NewV4()).String()

0 commit comments

Comments
 (0)