@classmethod<EOL><INDENT>def from_pubkey(cls, pubkey, compressed=True, version=<NUM_LIT>, prefix=None):<DEDENT>
<EOL>pubkey = PublicKey(pubkey, prefix=prefix or Prefix.prefix)<EOL>if compressed:<EOL><INDENT>pubkey_plain = pubkey.compressed()<EOL><DEDENT>else:<EOL><INDENT>pubkey_plain = pubkey.uncompressed()<EOL><DEDENT>sha = hashlib.sha256(unhexlify(pubkey_plain)).hexdigest()<EOL>rep = hexlify(ripemd160(sha)).decode("<STR_LIT:ascii>")<EOL>s = ("<STR_LIT>" % version) + rep<EOL>result = s + hexlify(doublesha256(s)[:<NUM_LIT:4>]).decode("<STR_LIT:ascii>")<EOL>result = hexlify(ripemd160(result)).decode("<STR_LIT:ascii>")<EOL>return cls(result, prefix=pubkey.prefix)<EOL>
Load an address provided the public key.

            Version: 56 => PTS