It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
def ecc_add(p1, p2, p):
# Elliptic curve addition
if p1 == (0, 0):
return p2
if p2 == (0, 0):
return p1
if p1[0] == p2[0] and p1[1] != p2[1]:
return (0, 0)
if p1 != p2:
m = (p2[1] - p1[1]) * pow(p2[0] - p1[0], -1, p) % p
else:
m = (3 * p1[0]**2 + 7) * pow(2 * p1[1], -1, p) % p
x3 = (m**2 - p1[0] - p2[0]) % p
y3 = (m * (p1[0] - x3) - p1[1]) % p
return (x3, y3)
def ecc_mul(point, k, p):
# Elliptic curve scalar multiplication
result = (0, 0)
addend = point
while k:
if k & 1:
result = ecc_add(result, addend, p)
addend = ecc_add(addend, addend, p)
k >>= 1
return result
# Define curve parameters for secp256k1
p = 2**256 - 2**32 - 977 # Prime for the finite field
x = 0x1
y = 0x4218f20ae6c646b363db68605822fb14264ca8d2587fdd6fbc750d587e76a7ee
# usage
k = 2 # Scalar to multiply
point = (x, y)
result = ecc_mul(point, k, p)
print(f"Resulting Point: {result}")
Resulting Point: (14474011154664524427946373126085988481658748083205070504932198000988604333959, 72704176545891799367084825159033606358294843509675418738294063466241294077822)
import matplotlib.pyplot as plt
import numpy as np
def is_on_curve(x, y, b):
return y**2 == x**3 + b
def plot_elliptic_curves(b_values, points, x_range):
fig, ax = plt.subplots(figsize=(12, 8))
x = np.linspace(x_range[0], x_range[1], 400)
for b in b_values:
y_squared = x**3 + b
y_positive = np.sqrt(y_squared)
y_negative = -y_positive
ax.plot(x, y_positive, label=f"y² = x³ + {b}")
ax.plot(x, y_negative, label=f"_")
for point in points:
if is_on_curve(point[0], point[1], b):
ax.plot(point[0], point[1], 'ro')
ax.set_xlabel("x")
ax.set_ylabel("y")
ax.set_title("Elliptic Curves and Points")
ax.legend()
plt.grid(True)
plt.show()
b_values = range(1, 11)
points_to_test = [(1, 2), (1, 3), (2, 3), (2, 4)]
x_range = (-2, 3)
plot_elliptic_curves(b_values, points_to_test, x_range)
x = 0x5c61e72fc664317304bdf556b56d72634a92023384b6c3184891f51e1b1318f5 y = 0x8
x = 0xa39e18d0399bce8cfb420aa94a928d9cb56dfdcc7b493ce7b76e0ae0e4ece333 y = 0x8