I just fixed the PoW, all algos are supported: Cuckaroo, Cuckarood, Cuckaroom, Cuckarooz and Cuckatoo. There is also automatic detection based on the block header.
You can install using
pip install mimblewimble==0.10.0
Check code sample here:
def test_pow_algo_auto():
assert pow_validate(cuckaroo_header) == (True, EPoWStatus.POW_OK)
assert pow_validate(cuckarood_header) == (True, EPoWStatus.POW_OK)
assert pow_validate(cuckaroom_header) == (True, EPoWStatus.POW_OK)
assert pow_validate(cuckarooz_header) == (True, EPoWStatus.POW_OK)
assert pow_validate(cuckatoo_header) == (True, EPoWStatus.POW_OK)
Keep in mind the donations listener is still on if you want to support my weekend grinnin’
grin1vcjsgk6rltncqh7cxjywukjfrf825d8a6xk77msfuhf9ev3r55wq7l2ng4
Take care!
5 Likes
Hi all, I just released 0.11.0 which includes output scanning from node.
You can install using
pip install mimblewimble==0.11.0
I also did a prototype of ツ BTC atomic swap (as well as I managed to understand it)
I made some prototype code (as well as I managed to understand it, likely something is missing)
def test_atomic_swap_grin_success():
ctx = secp256k1_context_create(SECP256K1_CONTEXT_VERIFY | SECP256K1_CONTEXT_SIGN)
seed = bytes.fromhex("7f64b1861b9139c0601f637957826da80bb3773adbc8c70265a0c3edb6fda33b")
msg = b"grin success tx kernel message"
ORDER = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141
def rand_priv():
while True:
p = os.urandom(32)
if secp256k1_ec_seckey_verify(ctx, p):
return p
# Alice keys
kA = rand_priv() # kernel nonce
rA = rand_priv() # kernel blinding factor
KA = secp256k1_ec_pubkey_create(ctx, kA)
RA = secp256k1_ec_pubkey_create(ctx, rA)
This file has been truncated. show original
Keep in mind the donations listener is still on if you want to support my weekend grinnin’
grin1vcjsgk6rltncqh7cxjywukjfrf825d8a6xk77msfuhf9ev3r55wq7l2ng4
Take care, friends
8 Likes
Dear all, 0.12.0 is released.
Contributions by @USCMigs :
BIP39 password protected seed
PMMR features
My work:
Added linter to the repo
Implemented node communications with core node
I contributed to grinmw API client module by @xiaojay , implemented all node and wallet (owner and foreign) API methods. Changes are pending review and merging by Jay.
pip install mimblewimble==0.12.0
Cheers!
8 Likes