func (uw *UpdateWitness) ToProto() *pb.UpdateWitness {
	out := &pb.UpdateWitness{
		Key: uw.Key[:],
		OldValue: uw.OldValue[:],
		NewValue: uw.NewValue[:],
		WitnessBitfield: uw.WitnessBitfield[:],
		LastLevel: uint32(uw.LastLevel),
		WitnessHashes: make([][]byte, len(uw.Witnesses)),
	}

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

	return out
}
// ToProto converts the UpdateWitness into protobuf form.
ToProto converts the UpdateWitness into protobuf form.
// ToProto converts the UpdateWitness into protobuf form .
func (uw *UpdateWitness) ToProto() *pb.UpdateWitness {
	out := &pb.UpdateWitness{
		Key: uw.Key[:],
		OldValue: uw.OldValue[:],
		NewValue: uw.NewValue[:],
		WitnessBitfield: uw.WitnessBitfield[:],
		LastLevel: uint32(uw.LastLevel),
		WitnessHashes: make([][]byte, len(uw.Witnesses)),
	}
	for i := range out.WitnessHashes {
		out.WitnessHashes[i] = uw.Witnesses[i][:]
	}
	return out
}
func ( uw * UpdateWitness ) ToProto ( ) * pb . UpdateWitness { out := & pb . UpdateWitness { Key : uw . Key [ : ] , OldValue : uw . OldValue [ : ] , NewValue : uw . NewValue [ : ] , WitnessBitfield : uw . WitnessBitfield [ : ] , LastLevel : uint32 ( uw . LastLevel ) , WitnessHashes : make ( [ ] [ ] byte , len ( uw . Witnesses ) ) , } for i := range out . WitnessHashes { out . WitnessHashes [ i ] = uw . Witnesses [ i ] [ : ] } return out }
ToProto converts the UpdateWitness into protobuf form.
ToProto converts the UpdateWitness into protobuf form .