solders.pubkey.Pubkey.from_bytes

从 bytes 数据获取到公钥信息

from solders.pubkey import Pubkey
demo_keypair = [212,232,237,180,136,254,44,53,57,6,149,58,97,53,64,
                93,151,38,207,41,76,21,251,53,116,53,117,197,95,210,
                191,71]
demo_pubkey = Pubkey.from_bytes(bytes(demo_keypair))
print(demo_pubkey)  #FL7SEguA7xPKdp2t4EcHyMuHz2LsGas6uRzwppKQD9ZQ

results matching ""

    No results matching ""