package merkle
import (
"hash"
)
type Proof struct {
LeftSide bool `json:"leftSide"` Hash []byte `json:"hash"`
}
func (p *Proof) SumWith(hashF hash.Hash, hash []byte) []byte {
if p.LeftSide {
return sum(hashF, p.Hash, hash)
} else {
return sum(hashF, hash, p.Hash)
}
}