Following baptism, Latter Day Saints receive the Gift of the Holy Ghost by the laying on of hands of a Melchizedek Priesthood holder.
Somewhere between Harmony and Colesville, New York, Peter, James, and John bestowed upon Smith and Cowdery the Melchizedek priesthood.