cryptnoxpy.cryptos

Submodules

Package Contents

Classes

RIPEMD160

Return a new RIPEMD160 object. An optional string argument

RMDContext

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)

new(arg=None)

Return a new RIPEMD160 object. An optional string argument

ROL(n, x)

F0(x, y, z)

F1(x, y, z)

F2(x, y, z)

F3(x, y, z)

F4(x, y, z)

R(a, b, c, d, e, Fj, Kj, sj, rj, X)

RMD160Transform(state, block)

RMD160Update(ctx, inp, inplen)

RMD160Final(ctx)

Attributes

P

N

A

B

Gx

Gy

G

_sum

pubtoaddr

hash160Low

hash160High

string_types

is_python2

digest_size

digestsize

range

K0

K1

K2

K3

K4

KK0

KK1

KK2

KK3

KK4

PADDING

string_types

string_types

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

Return a new RIPEMD160 object. An optional string argument may be provided; if present, this string will be automatically hashed.

update(self, arg)

update(arg)

digest(self)

digest()

hexdigest(self)

hexdigest()

copy(self)

copy()

cryptnoxpy.cryptos.new(arg=None)

Return a new RIPEMD160 object. An optional string argument may be provided; if present, this string will be automatically hashed.

class cryptnoxpy.cryptos.RMDContext
copy(self)
cryptnoxpy.cryptos.K0 = 0
cryptnoxpy.cryptos.K1 = 1518500249
cryptnoxpy.cryptos.K2 = 1859775393
cryptnoxpy.cryptos.K3 = 2400959708
cryptnoxpy.cryptos.K4 = 2840853838
cryptnoxpy.cryptos.KK0 = 1352829926
cryptnoxpy.cryptos.KK1 = 1548603684
cryptnoxpy.cryptos.KK2 = 1836072691
cryptnoxpy.cryptos.KK3 = 2053994217
cryptnoxpy.cryptos.KK4 = 0
cryptnoxpy.cryptos.ROL(n, x)
cryptnoxpy.cryptos.F0(x, y, z)
cryptnoxpy.cryptos.F1(x, y, z)
cryptnoxpy.cryptos.F2(x, y, z)
cryptnoxpy.cryptos.F3(x, y, z)
cryptnoxpy.cryptos.F4(x, y, z)
cryptnoxpy.cryptos.R(a, b, c, d, e, Fj, Kj, sj, rj, X)
cryptnoxpy.cryptos.PADDING
cryptnoxpy.cryptos.RMD160Transform(state, block)
cryptnoxpy.cryptos.RMD160Update(ctx, inp, inplen)
cryptnoxpy.cryptos.RMD160Final(ctx)
cryptnoxpy.cryptos.string_types
cryptnoxpy.cryptos.string_types