Skip to content

Instantly share code, notes, and snippets.

{
"genesis_time": "2018-07-17T07:19:26.795692941Z",
"chain_id": "gaia-7001",
"consensus_params": {
"block_size_params": {
"max_bytes": "22020096",
"max_txs": "10000",
"max_gas": "-1"
},
"tx_size_params": {
@UnitylChaos
UnitylChaos / gaia7002builder.py
Last active July 25, 2018 20:40
Gaia-7002 builder
import json
from hashlib import sha256
from base64 import b64decode
j = json.loads(open("7001state.json","r").read())
#validator addresses which hubble lists as being bonded validators but never signed a block
pks = ['28d64d33cd086452e491becfc15f3d31054db144', '26cf59b48aa6ff3a5126330782090b19bd3b0e87', '1e1a2486dce3b96e08f41d313908088ad33ed491', '1866433301a542afd800b971d6390551088a0903', '10ddf9c6aaf8e6f91f33a4fae3ebeab3c98136d2', '00122e5e691286ac03220fcee3ebec038067dded', '60229e2e273297fe00219e46dffb8f76844cdef9', 'd9e215abd1d680db4d60f3b347a07f949ea5242a', 'e33184c1eab6fb7c6ccb893963e8534c277fa842', 'd9bb73add5962326c5b8c36494dac1c3d7425db5', 'cc4c1d46ddba0912e9d6e4dd1f4a0897a945c68c', 'b3cec3cbafba428bf33fd2204e11ca2232426593', '9a03741063366e11ec0347f6c80a2891c799003f', '5a6b67f68591404c5079bebd7a6b7e046779d3b6', '4b75e0191ab777afb6787b94e256388e78d6a910', '3e504d10079dc278960c0f214235b840e23392b2', '52b590a0de161917dfa8215f990506c4df7a9d0d', '09f1395bfcdb45aa6f09cde85aa8b69246131962', 'ebcaa6886da
#!/bin/sh
# Before running this script, you need to create two accounts in gaiacli
# Then transfer a token of some kind to your first account
#
# To create an account:
# gaiacli keys add mirror
# use the password "password"
#
# Repeat this for mirror2
F1 = GF(21888242871839275222246405745257275088696311157297823662689037894645226208583)
G1 = EllipticCurve(F1,[0,3])
print(G1)
P1 = G1(1,2)
F2 = GF(21888242871839275222246405745257275088696311157297823662689037894645226208583^2,"i",modulus=x^2 + 1)
TwistB = 3*F2("9+i")^(-1)
G2 = EllipticCurve(F2,[0,TwistB])

Keybase proof

I hereby claim:

  • I am jlandrews on github.
  • I am jlandrews (https://keybase.io/jlandrews) on keybase.
  • I have a public key ASDawUjFAFAZeJuKlhJ4WVmzYfnp1NGYzu_lc1qMLR3GpQo

To claim this, I am signing this object: