Пример #1
0
func commitmentToBalances(h *seqhash.Hash, c comp.C) int {
	trackc := verified.NewTrackC(c)

	t := h.Finish(trackc).(verified.LogTree)
	trackc.Use(t)

	lastReturn := t.Index(t.Count()-1, trackc)
	trackc.Use(lastReturn)

	_ = lastReturn.ArgsOrResults[0].(bitrie.Bitrie)

	return computeSize(h, trackc)
}
Пример #2
0
func nextstep(h *seqhash.Hash, c comp.C) int {
	trackc := verified.NewTrackC(c)
	_, _ = verified.Resolve(h.Finish(trackc).(verified.LogTree), trackc)

	return computeSize(h, trackc)
}