Skip to content

Instantly share code, notes, and snippets.

View abdielsudiro's full-sized avatar
🏠
Working from home

Inline Assembly abdielsudiro

🏠
Working from home
View GitHub Profile
@abdielsudiro
abdielsudiro / installation_oracle_xe_archlinux.md
Created January 22, 2025 08:47 — forked from davidmaignan/installation_oracle_xe_archlinux.md
Basic installation for oracle-xe on archlinux

Clone git repository

git clone https://aur.archlinux.org/oracle-xe.git
cd oracle-xe

Download oracle-xe-rpm.zip

wget http://download.oracle.com/otn/linux/oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
# https://bitcoin.stackexchange.com/a/59806
def secp256k1(s):
P = 2**256 - 2**32 - 2**9 - 2**8 - 2**7 - 2**6 - 2**4 - 1
N = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141
G = (0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798,
0x483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8)
def add(p, q):

Hal Finney's explanation of secp256k1 "efficiently computable endomorphism" parameters used secp256k1 libraries, archived from source.

The same optimization could be applied to any Koblitz curve (e.g. Short Weistrass curve with a=0).


I implemented an optimized ECDSA verify for the secp256k1 curve, based on pages 125-129 of the Guide to Elliptic Curve Cryptography, by Hankerson, Menezes and Vanstone. I own the book but I also found a PDF on a Russian site which is more convenient.

secp256k1 uses the following prime for its x and y coordinates:

@abdielsudiro
abdielsudiro / cuda_11.7_installation_on_Ubuntu_22.04
Created November 7, 2024 16:52 — forked from X-TRON404/cuda_11.7_installation_on_Ubuntu_22.04
Instructions for CUDA v11.7 and cuDNN 8.5 installation on Ubuntu 22.04 for PyTorch 1.12.1
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@abdielsudiro
abdielsudiro / pybitbalance.py
Created May 12, 2024 19:21 — forked from Qalander/pybitbalance.py
Python script for Bitcoin addresses bulk balance checking.
import argparse
import urllib3
from urllib3 import util
import json
import math
LIMIT = 120
SATOSHI = 1e+8
[
"access-point",
"access-point-network",
"access-point-network-off",
"account",
"account-alert",
"account-alert-outline",
"account-arrow-left",
"account-arrow-left-outline",
"account-arrow-right",
@abdielsudiro
abdielsudiro / react-native-authentication.md
Last active June 26, 2023 21:11 — forked from silvioramalho/react-native-authentication.md
Creating React Native Authentication

Creating React Native Authentication

Creating a complete authentication flow using context-api. (Step-by-step)

This flow can be replicated to React-JS (Web)

Creating App

npx react-native init reactNativeAuth --template react-native-template-typescript

@abdielsudiro
abdielsudiro / addrgen
Created June 15, 2023 17:50 — forked from JBaczuk/addrgen
addrgen
#!/bin/bash
echo
echo "Welcome to the Bitcoin address generator!"
echo "input private key (32 bytes, hex format)"
read priv
echo ""
echo "#####################################"
# priv=0C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D # Testing only
@abdielsudiro
abdielsudiro / Setting up a CentOS Router.md
Created June 15, 2023 11:54 — forked from yuminstalljoe/Setting up a CentOS Router.md
A little tutorial on setting up a CentOS router, aimed at the CNY Hackathon.

Setting up a CentOS Router

Note: This tutorial will cover setting up a firewalld firewall and making your system a router. firewalld is preinstalled on CentOS and Red Hat Enterprise Linux systems.

Introduction

To follow the contents of this tutorial, be sure to follow inside a terminal. Most operations require super user priviliges. For the sake of the tutorial, be sure all commands are executed as root or execute all commands with sudo.

Editor

Replace any instances of vi with your command-line editor of choice. Possible editors include:

  • vi
{{ $var }} - Echo content
{{ $var or 'default' }} - Echo content with a default value
{{{ $var }}} - Echo escaped content
{{-- Comment --}} - A Blade comment
@extends('layout') - Extends a template with a layout
@if(condition) - Starts an if block
@else - Starts an else block
@elseif(condition) - Start a elseif block
@endif - Ends a if block