code: func payToPubKeyScript(serializedPubKey []byte) ([]byte, error) {
  	return NewScriptBuilder().AddData(serializedPubKey).
  		AddOp(OP_CHECKSIG).Script()
  }
docs: // payToPubkeyScript creates a new script to pay a transaction output to a
  // public key. It is expected that the input is a valid pubkey.