Skip to content

Commit

Permalink
Merge pull request #79 from yihuang/remove-privatekey
Browse files Browse the repository at this point in the history
PrivateKey field in ParentNode is not used anymore
  • Loading branch information
bifurcation authored Mar 31, 2021
2 parents d383950 + 5038bc5 commit 158a382
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions treekem.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ const (

type ParentNode struct {
PublicKey HPKEPublicKey
UnmergedLeaves []LeafIndex `tls:"head=4"`
ParentHash []byte `tls:"head=1"`
PrivateKey *HPKEPrivateKey `tls:"omit"`
UnmergedLeaves []LeafIndex `tls:"head=4"`
ParentHash []byte `tls:"head=1"`
}

func (n *ParentNode) Equals(other *ParentNode) bool {
Expand All @@ -39,7 +38,6 @@ func (n ParentNode) Clone() ParentNode {
PublicKey: n.PublicKey,
UnmergedLeaves: make([]LeafIndex, len(n.UnmergedLeaves)),
ParentHash: dup(n.ParentHash),
PrivateKey: n.PrivateKey,
}

for i, n := range n.UnmergedLeaves {
Expand Down

0 comments on commit 158a382

Please sign in to comment.