cryptnoxpy.cryptos.main

Module Contents

Functions

change_curve(p, n, a, b, gx, gy)

getG()

inv(a, n)

access(obj, prop)

multiaccess(obj, prop)

slice(obj, start=0, end=2**200)

count(obj)

sum(obj)

isinf(p)

to_jacobian(p)

jacobian_double(p)

jacobian_add(p, q)

fast_add(a, b)

get_pubkey_format(pub)

encode_pubkey(pub, formt)

decode_pubkey(pub, formt=None)

get_privkey_format(priv)

encode_privkey(priv, formt, vbyte=128)

decode_privkey(priv, formt=None)

add_pubkeys(p1, p2)

add_privkeys(p1, p2)

divide(pubkey, privkey)

compress(pubkey)

decompress(pubkey)

neg_pubkey(pubkey)

neg_privkey(privkey)

subtract_pubkeys(p1, p2)

subtract_privkeys(p1, p2)

bin_hash160(string)

hash160(string)

hex_to_hash160(s_hex)

bin_sha256(string)

sha256(string)

bin_ripemd160(string)

ripemd160(string)

bin_dbl_sha256(s)

dbl_sha256(string)

bin_slowsha(string)

slowsha(string)

hash_to_int(x)

num_to_var_int(x)

electrum_sig_hash(message)

b58check_to_bin(inp)

get_version_byte(inp)

hex_to_b58check(inp, magicbyte=0)

b58check_to_hex(inp)

pubkey_to_hash(pubkey)

pubkey_to_hash_hex(pubkey)

pubkey_to_address(pubkey, magicbyte=0)

is_privkey(priv)

is_pubkey(pubkey)

encode_sig(v, r, s)

decode_sig(sig)

deterministic_generate_k(msghash, priv)

ecdsa_verify_addr(msg, sig, addr, coin)

ecdsa_verify(msg, sig, pub, coin)

add(p1, p2)

subtract(p1, p2)

magicbyte_to_prefix(magicbyte)

Attributes

P

N

A

B

Gx

Gy

G

_sum

pubtoaddr

hash160Low

hash160High

cryptnoxpy.cryptos.main.P
cryptnoxpy.cryptos.main.N = 115792089237316195423570985008687907852837564279074904382605163141518161494337
cryptnoxpy.cryptos.main.A = 0
cryptnoxpy.cryptos.main.B = 7
cryptnoxpy.cryptos.main.Gx = 55066263022277343669578718895168534326250603453777594175500187360389116729240
cryptnoxpy.cryptos.main.Gy = 32670510020758816978083085130507043184471273380659243275938904335757337482424
cryptnoxpy.cryptos.main.G
cryptnoxpy.cryptos.main.change_curve(p, n, a, b, gx, gy)
cryptnoxpy.cryptos.main.getG()
cryptnoxpy.cryptos.main.inv(a, n)
cryptnoxpy.cryptos.main.access(obj, prop)
cryptnoxpy.cryptos.main.multiaccess(obj, prop)
cryptnoxpy.cryptos.main.slice(obj, start=0, end=2 ** 200)
cryptnoxpy.cryptos.main.count(obj)
cryptnoxpy.cryptos.main._sum
cryptnoxpy.cryptos.main.sum(obj)
cryptnoxpy.cryptos.main.isinf(p)
cryptnoxpy.cryptos.main.to_jacobian(p)
cryptnoxpy.cryptos.main.jacobian_double(p)
cryptnoxpy.cryptos.main.jacobian_add(p, q)
cryptnoxpy.cryptos.main.fast_add(a, b)
cryptnoxpy.cryptos.main.get_pubkey_format(pub)
cryptnoxpy.cryptos.main.encode_pubkey(pub, formt)
cryptnoxpy.cryptos.main.decode_pubkey(pub, formt=None)
cryptnoxpy.cryptos.main.get_privkey_format(priv)
cryptnoxpy.cryptos.main.encode_privkey(priv, formt, vbyte=128)
cryptnoxpy.cryptos.main.decode_privkey(priv, formt=None)
cryptnoxpy.cryptos.main.add_pubkeys(p1, p2)
cryptnoxpy.cryptos.main.add_privkeys(p1, p2)
cryptnoxpy.cryptos.main.divide(pubkey, privkey)
cryptnoxpy.cryptos.main.compress(pubkey)
cryptnoxpy.cryptos.main.decompress(pubkey)
cryptnoxpy.cryptos.main.neg_pubkey(pubkey)
cryptnoxpy.cryptos.main.neg_privkey(privkey)
cryptnoxpy.cryptos.main.subtract_pubkeys(p1, p2)
cryptnoxpy.cryptos.main.subtract_privkeys(p1, p2)
cryptnoxpy.cryptos.main.bin_hash160(string)
cryptnoxpy.cryptos.main.hash160(string)
cryptnoxpy.cryptos.main.hex_to_hash160(s_hex)
cryptnoxpy.cryptos.main.bin_sha256(string)
cryptnoxpy.cryptos.main.sha256(string)
cryptnoxpy.cryptos.main.bin_ripemd160(string)
cryptnoxpy.cryptos.main.ripemd160(string)
cryptnoxpy.cryptos.main.bin_dbl_sha256(s)
cryptnoxpy.cryptos.main.dbl_sha256(string)
cryptnoxpy.cryptos.main.bin_slowsha(string)
cryptnoxpy.cryptos.main.slowsha(string)
cryptnoxpy.cryptos.main.hash_to_int(x)
cryptnoxpy.cryptos.main.num_to_var_int(x)
cryptnoxpy.cryptos.main.electrum_sig_hash(message)
cryptnoxpy.cryptos.main.b58check_to_bin(inp)
cryptnoxpy.cryptos.main.get_version_byte(inp)
cryptnoxpy.cryptos.main.hex_to_b58check(inp, magicbyte=0)
cryptnoxpy.cryptos.main.b58check_to_hex(inp)
cryptnoxpy.cryptos.main.pubkey_to_hash(pubkey)
cryptnoxpy.cryptos.main.pubkey_to_hash_hex(pubkey)
cryptnoxpy.cryptos.main.pubkey_to_address(pubkey, magicbyte=0)
cryptnoxpy.cryptos.main.pubtoaddr
cryptnoxpy.cryptos.main.is_privkey(priv)
cryptnoxpy.cryptos.main.is_pubkey(pubkey)
cryptnoxpy.cryptos.main.encode_sig(v, r, s)
cryptnoxpy.cryptos.main.decode_sig(sig)
cryptnoxpy.cryptos.main.deterministic_generate_k(msghash, priv)
cryptnoxpy.cryptos.main.ecdsa_verify_addr(msg, sig, addr, coin)
cryptnoxpy.cryptos.main.ecdsa_verify(msg, sig, pub, coin)
cryptnoxpy.cryptos.main.add(p1, p2)
cryptnoxpy.cryptos.main.subtract(p1, p2)
cryptnoxpy.cryptos.main.hash160Low = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
cryptnoxpy.cryptos.main.hash160High = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
cryptnoxpy.cryptos.main.magicbyte_to_prefix(magicbyte)