// Gets the hash value corresponding with index (starting from 0) on the proof path and its order.
// If order is true, the hash value returned should be placed in the left, otherwise, right
Gets the hash value corresponding with index (starting from 0) on the proof path and its order.
If order is true, the hash value returned should be placed in the left, otherwise, right
// Gets the hash value corresponding with index ( starting from 0 ) on the proof path and its order . // If order is true the hash value returned should be placed in the left otherwise right
func (p *MerkleProofs) Get(index int) (h Hash, order bool, err error) {
	if index < 0 || index >= len(p.Hashs) {
		return Hash{}, false, ErrIllegalParams
	}
	h = p.Hashs[index]
	if p.Paths.Bit(index) == 1 {
		order = true
	} else {
		order = false
	}
	return
}
func ( p * MerkleProofs ) Get ( index int ) ( h Hash , order bool , err error ) { if index < 0 || index >= len ( p . Hashs ) { return Hash { } , false , ErrIllegalParams } h = p . Hashs [ index ] if p . Paths . Bit ( index ) == 1 { order = true } else { order = false } return }
Gets the hash value corresponding with index (starting from 0) on the proof path and its order.
Gets the hash value corresponding with index ( starting from 0 ) on the proof path and its order .