symbolchain.nem package
Submodules
symbolchain.nem.KeyPair module
symbolchain.nem.MessageEncoder module
- class symbolchain.nem.MessageEncoder.MessageEncoder(key_pair: KeyPair)
Bases:
object
Encrypts and encodes messages between two parties.
- encode(recipient_public_key: PublicKey, message: bytes)
Encodes message to recipient using recommended format.
- encode_deprecated(recipient_public_key: PublicKey, message: bytes)
Encodes message to recipient using deprecated encryption and key derivation.
- property public_key
Public key used for message encoding.
symbolchain.nem.Network module
- class symbolchain.nem.Network.Address(address)
Bases:
ByteArray
Represents a nem address.
- ENCODED_SIZE = 40
- SIZE = 25
- class symbolchain.nem.Network.Network(name, identifier, epoch_time)
Bases:
Network
Represents a nem network.
- MAINNET = <symbolchain.nem.Network.Network object>
- NETWORKS = [<symbolchain.nem.Network.Network object>, <symbolchain.nem.Network.Network object>]
- TESTNET = <symbolchain.nem.Network.Network object>
- address_hasher()
Gets the primary hasher to use in the public key to address conversion.
- create_address(address_without_checksum, checksum)
Creates an encoded address from an address without checksum and checksum bytes.
- class symbolchain.nem.Network.NetworkTimestamp(timestamp)
Bases:
NetworkTimestamp
Represents a nem network timestamp with second resolution.
- add_seconds(count)
Adds a specified number of seconds to this timestamp.
symbolchain.nem.TransactionFactory module
- class symbolchain.nem.TransactionFactory.TransactionFactory(network, type_rule_overrides=None)
Bases:
object
Factory for creating NEM transactions.
- static attach_signature(transaction, signature)
Attaches a signature to a transaction.
- create(transaction_descriptor, autosort=True)
Creates a transaction from a transaction descriptor. When autosort is set (default), descriptor arrays requiring ordering will be automatically sorted. When unset, descriptor arrays will be presumed to be already sorted.
- static deserialize(payload)
Deserializes a transaction from a binary payload.
- static lookup_transaction_name(transaction_type, transaction_version)
Looks up the friendly name for the specified transaction.
- static to_non_verifiable_transaction(transaction)
Converts a transaction to a non-verifiable transaction.