pybitmessage.pyelliptic.arithmetic module

Arithmetic Expressions

inv(a, n)[source]

Inversion

get_code_string(base)[source]

Returns string according to base value

encode(val, base, minlen=0)[source]

Returns the encoded string

decode(string, base)[source]

Returns the decoded string

changebase(string, frm, to, minlen=0)[source]

Change base of the string

base10_add(a, b)[source]

Adding the numbers that are of base10

base10_double(a)[source]

Double the numbers that are of base10

base10_multiply(a, n)[source]

Multiply the numbers that are of base10

hex_to_point(h)[source]

Converting hexadecimal to point value

point_to_hex(p)[source]

Converting point value to hexadecimal

multiply(privkey, pubkey)[source]

Multiplying keys

privtopub(privkey)[source]

Converting key from private to public

add(p1, p2)[source]

Adding two public keys

hash_160(string)[source]

Hashed version of public key

dbl_sha256(string)[source]

Double hashing (SHA256)

bin_to_b58check(inp)[source]

Convert binary to base58

pubkey_to_address(pubkey)[source]

Convert a public key (in hex) to a Bitcoin address