func (vw *VerificationWitness) ToProto() *pb.VerificationWitness {
	out := &pb.VerificationWitness{
		Key: vw.Key[:],
		Value: vw.Value[:],
		WitnessBitfield: vw.WitnessBitfield[:],
		LastLevel: uint32(vw.LastLevel),
		WitnessHashes: make([][]byte, len(vw.Witnesses)),
	}

	for i := range out.WitnessHashes {
		out.WitnessHashes[i] = vw.Witnesses[i][:]
	}

	return out
}
// ToProto converts the verification witness into protobuf form.
ToProto converts the verification witness into protobuf form.
// ToProto converts the verification witness into protobuf form .
func (vw *VerificationWitness) ToProto() *pb.VerificationWitness {
	out := &pb.VerificationWitness{
		Key: vw.Key[:],
		Value: vw.Value[:],
		WitnessBitfield: vw.WitnessBitfield[:],
		LastLevel: uint32(vw.LastLevel),
		WitnessHashes: make([][]byte, len(vw.Witnesses)),
	}
	for i := range out.WitnessHashes {
		out.WitnessHashes[i] = vw.Witnesses[i][:]
	}
	return out
}
func ( vw * VerificationWitness ) ToProto ( ) * pb . VerificationWitness { out := & pb . VerificationWitness { Key : vw . Key [ : ] , Value : vw . Value [ : ] , WitnessBitfield : vw . WitnessBitfield [ : ] , LastLevel : uint32 ( vw . LastLevel ) , WitnessHashes : make ( [ ] [ ] byte , len ( vw . Witnesses ) ) , } for i := range out . WitnessHashes { out . WitnessHashes [ i ] = vw . Witnesses [ i ] [ : ] } return out }
ToProto converts the verification witness into protobuf form.
ToProto converts the verification witness into protobuf form .