Skip to content

Commit

Permalink
hashchain: use ptrs in struct, another goose thing
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjit-bhat committed Jul 16, 2024
1 parent ae29067 commit c12c76b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ktmerkle/ktmerkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type server struct {
trees []*merkle.Tree
// updates just for the current epoch.
updates map[string][]byte
chain hashChain
chain *hashChain
linkSigs []cryptoffi.Sig
}

Expand All @@ -122,7 +122,7 @@ func newServer() (*server, cryptoffi.PublicKey) {
sig := sk.Sign(enc)
var sigs []cryptoffi.Sig
sigs = append(sigs, sig)
return &server{sk: sk, mu: mu, trees: trees, chain: *chain, linkSigs: sigs, updates: updates}, pk
return &server{sk: sk, mu: mu, trees: trees, chain: chain, linkSigs: sigs, updates: updates}, pk
}

// applyUpdates returns a new merkle tree with the updates applied to the current tree.
Expand Down

0 comments on commit c12c76b

Please sign in to comment.