Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Read the public key for an address using blockchain.info
    

        def get_public_key_from_address(address):
    """Read the public key for an address using blockchain.info
    """
    url = "https://blockchain.info/q/pubkeyaddr/%s" % address
    f = urllib2.urlopen(url)
    s = f.read()
    if len(s) < 1:
        raise RuntimeError("Public Key does not seem to be in the blockchain")
    return s
        


src/c/o/coinmessage-HEAD/coinmessage/__init__.py   coinmessage(Download)
from pycoin.encoding import sec_to_public_pair, wif_to_secret_exponent
from encrypt import PubKey, PrivKey, BasePoint
from services import get_public_key_from_address, get_private_key_from_address
 
 
def encrypt_message(address, message):
    """Encrypts a message to an address.
    """
    hex_public_key = get_public_key_from_address(address)