• Stars
    star
    255
  • Rank 159,729 (Top 4 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Bitcoin/Ethereum key manipulation

blocksmith

The goal of this library is to generate private keys and create Bitcoin and Ethereum wallet addresses from them.

pip install blocksmith

Usage

Generate a private key

import blocksmith

kg = blocksmith.KeyGenerator()
kg.seed_input('Truly random string. I rolled a dice and got 4.')
key = kg.generate_key()
print(key)
# 7077da4a47f6c85a21fe6c6cf1285c0fa06915871744ab1e5a5b741027884d00

Create Bitcoin wallet from a private key

import blocksmith

key = '7077da4a47f6c85a21fe6c6cf1285c0fa06915871744ab1e5a5b741027884d00'

address = blocksmith.BitcoinWallet.generate_address(key)
print(address)
# 1JUP2bjfVexDif2m5fgyjHFrV9FE494REN

Create Ethereum wallet from a private key

import blocksmith

key = '7077da4a47f6c85a21fe6c6cf1285c0fa06915871744ab1e5a5b741027884d00'

address = blocksmith.EthereumWallet.generate_address(key)
print(address)
# 0x1269645a46a3e86c1a3c3de8447092d90f6f04ed

checksum_address = blocksmith.EthereumWallet.checksum_address(address)
print(checksum_address)
# 0x1269645a46A3e86c1a3C3De8447092D90f6F04ED

More Repositories

1

ethcall

ethers.js-compatible wrapper around Multicall
TypeScript
177
star
2

mev-inspect-js

A JS port of "mev-inspect-py" optimised for ease of use.
TypeScript
129
star
3

astro-analytics

Astro components for site analytics
Astro
110
star
4

hollander-core

ERC20 token swaps via gradual dutch auctions
Solidity
43
star
5

deployless-multicall

Solidity
28
star
6

catflip

MakerDAO system parameters
Vue
16
star
7

bag-app

Onchain Farcaster Frames
TypeScript
15
star
8

ethereum-json-rpc

An interactive reference of the Ethereum node API
Vue
13
star
9

abi-coder

Ethereum ABI encoding and decoding utils
TypeScript
11
star
10

metablock-page

Vue
10
star
11

astro-head

Batteries-included Astro component for your `<head>`
Astro
8
star
12

brickwork-vue

Customizable and accessible UI components with sane defaults for Vue 3
Vue
8
star
13

ethlabel

Ethereum address to labels mapping database
TypeScript
7
star
14

telegame

Library for Telegram Gaming Platform
Python
6
star
15

module-frame

FC frames + ERC7579 modules
Solidity
6
star
16

sandpack-vue

Vue components for Sandpack
TypeScript
6
star
17

astro-latex

LaTeX component for Astro
Astro
4
star
18

module-airdrop-claim

TypeScript
4
star
19

evmbeat

Live stats for 20+ EVM networks
Vue
4
star
20

mev-explorer

Vue
3
star
21

sublime-astro

Astro syntax highlighting for Sublime Text
3
star
22

hollander-react

TypeScript
2
star
23

compound-governance-dashboard

Compound Governance Dashboard (currently Ropsten)
Vue
2
star
24

starter-app

Bare-bones app template using Vue, Vite, and Vercel
Vue
2
star
25

ethdev

Ethereum dapp development utilities
JavaScript
2
star
26

eip-7702

TypeScript
2
star
27

balancer-toolbox

Vue
1
star
28

hollander-subgraph

https://thegraph.com/hosted-service/subgraph/destiner/hollander-goerli
TypeScript
1
star
29

sor

JavaScript
1
star
30

hyperlane-hook-scroll

Solidity
1
star
31

hollander-app

Vue
1
star
32

block-subgraph

Block indexing subgraph
TypeScript
1
star
33

astro-alpha

Bold, but minimal blog theme for Astro.
Vue
1
star
34

reports

1
star
35

telegram-bot

TypeScript
1
star