func PubkeyToAddress(pubkey *secp256k1.PublicKey, shardID uint32) Address {
	var shardBytes [4]byte
	binary.BigEndian.PutUint32(shardBytes[:], shardID)

	pkh := chainhash.HashH(append(shardBytes[:], pubkey.SerializeCompressed()...))

	addr := base58.CheckEncode(pkh[:20], PhoreAddressVersion)

	return Address(addr)
}
// PubkeyToAddress converts a pubkey to an address.
PubkeyToAddress converts a pubkey to an address.
// PubkeyToAddress converts a pubkey to an address .
func PubkeyToAddress(pubkey *secp256k1.PublicKey, shardID uint32) Address {
	var shardBytes [4]byte
	binary.BigEndian.PutUint32(shardBytes[:], shardID)
	pkh := chainhash.HashH(append(shardBytes[:], pubkey.SerializeCompressed()...))
	addr := base58.CheckEncode(pkh[:20], PhoreAddressVersion)
	return Address(addr)
}
func PubkeyToAddress ( pubkey * secp256k1 . PublicKey , shardID uint32 ) Address { var shardBytes [ 4 ] byte binary . BigEndian . PutUint32 ( shardBytes [ : ] , shardID ) pkh := chainhash . HashH ( append ( shardBytes [ : ] , pubkey . SerializeCompressed ( ) ... ) ) addr := base58 . CheckEncode ( pkh [ : 20 ] , PhoreAddressVersion ) return Address ( addr ) }
PubkeyToAddress converts a pubkey to an address.
PubkeyToAddress converts a pubkey to an address .