func ExampleFromPublicKey() {
	_, publicKey := btcec.PrivKeyFromBytes(btcec.S256(), privateKeyBytes)
	pay := payment.FromPublicKey(publicKey, &network.Regtest, nil)
	addr, _ := pay.PubKeyHash()
	fmt.Printf("P2PKH address %v\n:", addr)
}
This examples shows how standard P2PKH address can be created
package payment_test
import (
	"encoding/hex"
	"fmt"
	"github.com/btcsuite/btcd/btcec"
	"github.com/vulpemventures/go-elements/network"
	"github.com/vulpemventures/go-elements/payment"
)
const (
	privateKeyHex = "1cc080a4cd371eafcad489a29664af6a7276b362fe783443ce036552482b971d"
)
var privateKeyBytes, _ = hex.DecodeString(privateKeyHex)