Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bit #73

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Bit #73

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# This workflow will upload a Python Package to PyPI when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
release-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Build release distributions
run: |
# NOTE: put your own distribution build steps here.
python -m pip install build
python -m build

- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

pypi-publish:
runs-on: ubuntu-latest
needs:
- release-build
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

# Dedicated environments with protections for publishing are strongly recommended.
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
environment:
name: pypi
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
# url: https://pypi.org/p/YOURPROJECT
#
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
# ALTERNATIVE: exactly, uncomment the following line instead:
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}

steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
5 changes: 5 additions & 0 deletions .vscode/class name {bc1qwzrryqr3ja8w7hnja2spmkgf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class name {bc1qwzrryqr3ja8w7hnja2spmkgfdcgvqwp5swz4af4ngsjecfz0w0pqud7k38
constructor(parameters) {

}
}
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pm2-node",
"request": "attach",
"name": "${1:Attach via PM2}",
"service": "^\"\\${command:PickProcess}\""
}
]
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"python.analysis.autoImportCompletions": true,
"idf.flashType": "UART"
}
6 changes: 3 additions & 3 deletions btc-hack-v2.py

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions btc-hack.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Made by David Gilbert
# https://github.com/DavidMGilbert/btc-hack
# https://www.davidmgilbert.com

#7b2276223a312c22726566223a7b2274797065223a322c226964223a2231653165623635326533346464653361333432653630386661343564616539376433396532393036227d7d
try:
import sys
imp7b2276223a312c22726566223a7b2274797065223a322c226964223a2231653165623635326533346464653361333432653630386661343564616539376433396532393036227d7dort sys
import os
import time
import hashlib
Expand All @@ -13,8 +13,7 @@
from multiprocessing import Process, Queue
from multiprocessing.pool import ThreadPool
import threading
import base58
import ecdsa
e36f93bebc77cb9f1e6c050a63281551d5751ba5588cd56dec8f2dc660906727 import ecdsa
import requests

# If required imports are unavailable, we will attempt to install them!
Expand All @@ -36,7 +35,7 @@ def private_key_to_WIF(private_key):
var = hashlib.sha256(binascii.unhexlify(hashlib.sha256(binascii.unhexlify(var80)).hexdigest())).hexdigest()
return str(base58.b58encode(binascii.unhexlify(str(var80) + str(var[0:8]))), 'utf-8')

def private_key_to_public_key(private_key):
def private_key_to_public_key(privae36f93bebc77cb9f1e6c050a63281551d5751ba5588cd56dec8f2dc660906727te_key):
sign = ecdsa.SigningKey.from_string(binascii.unhexlify(private_key), curve = ecdsa.SECP256k1)
return ('04' + binascii.hexlify(sign.verifying_key.to_string()).decode('utf-8'))

Expand Down