http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/commit/0c94427bcdabd2cc45a41cc3c499178095d06913?style=unified
Secp256k1 . secp256k1_group_order class unit_tests : def pubkey_ops ( self , name , ut ) : vmsg ( f ' Generating pubkey, adding scalar 123456789 to pubkey: ' ) pk_addend_bytes = int . to_bytes ( 123456789 , length = 32 ) for privkey in ( ' beadcafe ' * 8 , f ' { 1 : 064x } ' , f ' { secp256k1_group_order - 1 : x } ' , ) : vmsg ( f ' privkey = 0x { privkey } ' ) for compressed , length in ( ( False , 65 ) , ( True , 33 ) ) : vmsg ( f ' { compressed =} ' ) pubkey_bytes = pubkey_gen ( bytes . fromhex (...