(2022-11)Steem.vip Development progress

in cn •  11 months ago 


About steem.vip

steem.vip is a steem wallet(https://vip.steem.vip/).Support STEEM and HIVE chains.


  • Recover pubkey from signature


def get_pubkey(block_num,tx_id,nodes):

    data = {"jsonrpc": "2.0", "method": "condenser_api.get_block", "params": [block_num], "id": 1}
    r = requests.post(url=nodes, json=data)
    rjson = r.json()
    block = rjson["result"]
    index = block['transaction_ids'].index(tx_id)
    tx = block['transactions'][index]
    tx_obj = Signed_Transaction(**tx)
    digest = tx_obj.digest

    #hh = hexlify(digest).decode("ascii")

    signature = tx["signatures"][0]
    sig = unhexlify(signature)
    recover_pubkey_parameter = sig[0] - 4 - 27
    r = int.from_bytes(sig[1:33], "big")
    s = int.from_bytes(sig[33:65], "big")
    Sig = ecdsa.ecdsa.Signature(r, s)
    digest_number = ecdsa.util.string_to_number(digest)
    pubks = Sig.recover_public_keys(digest_number, ecdsa.SECP256k1.generator)
    pk = ecdsa.VerifyingKey.from_public_point(pubks[recover_pubkey_parameter].point, curve=ecdsa.SECP256k1)
    compressed = hexlify(pk.to_string(encoding="compressed")).decode("ascii")

    pubkey = "STM" + gphBase58CheckEncode(compressed)
    return pubkey


  • fix some bugs

关于 steem.vip

steem.vip 是一个steem钱包(https://vip.steem.vip/).目前支持steem和hive链,在steem上的功能要丰富的多。同时支持eth和tron的钱包创建。


  • 修改了区块反查工具,可以从签名中还原公钥。以辨认可疑操作是由谁签名。


  • 修复了一些BUG
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you, friend!
I'm @steem.history, who is steem witness.
Thank you for witnessvoting for me.
please click it!
(Go to https://steemit.com/~witnesses and type fbslo at the bottom of the page)

The weight is reduced because of the lack of Voting Power. If you vote for me as a witness, you can get my little vote.

This post has been featured in the latest edition of Witness Weekly...

If you would like to support Witness Weekly and Steem News please consider voting for @pennsif.witness