Null Signer

class NullSigner

A signer implementation that always produces solders.signature.Signature.default(). Used as a placeholder for absentee signers whose ‘Pubkey` is required to construct the transaction.

Parameters:

pubkey (Pubkey) – The pubkey of the signer.

static default()

Create a new default null signer.

Returns:

The default null signer.

Return type:

NullSigner

static from_bytes(data)

Deserialize a serialized NullSigner object.

Parameters:

data (bytes) – The serialized NullSigner.

Returns:

The deserialized NullSigner.

Return type:

NullSigner

static from_json(raw)

Build from a JSON string.

pubkey()

Return the pubkey of the signer.

Returns:

The signer’s pubkey.

Return type:

Pubkey

sign_message(message)

Simply returns solders.signature.Signature.default().

Returns:

The default signature.

Return type:

Signature

to_json()

Convert to a JSON string.