Skip to content

SDK drift: signerFromPrivateKey factory function exported in TypeScript has no Python equivalent #1008

@realfishsam

Description

@realfishsam

What

TypeScript exports a signerFromPrivateKey factory function; Python has no equivalent.

TypeScript (sdks/typescript/pmxt/signers.ts:84-86):

export async function signerFromPrivateKey(privateKey: string): Promise<Signer>

Python: sdks/python/pmxt/signers.py has no signer_from_private_key function. sdks/python/pmxt/__init__.py exports no signer factory.

Impact

TypeScript users have a canonical one-liner to construct a Signer from a private key: const signer = await signerFromPrivateKey(key). Python users must know to import EthAccountSigner from the non-public pmxt.signers submodule and call EthAccountSigner(key) directly. There is no signer_from_private_key convenience function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions