示例#1
0
文件: main.go 项目: Roasbeef/versum
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
文件: main.go 项目: Roasbeef/versum
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)
}