CompressedPublicKey
33-byte compressed secp256k1 public key
Definition
class CompressedPublicKey(_SizedHexBytes):
_size = 33Construction
Parameter
Type
Required
Description
Example
from eth_keys import keys as eth_keys
from seismic_web3 import PrivateKey, CompressedPublicKey
import os
private_key = PrivateKey(os.urandom(32))
sk = eth_keys.PrivateKey(bytes(private_key))
pubkey = CompressedPublicKey(sk.public_key.to_compressed_bytes())Compressed format
See Also
Last updated

