ptm

For more details about the Private Transaction manager

Source:

Methods

(inner) keys()

Source:
Returns:

all public keys managed by the server's enclave

(inner) partyInfoKeys()

Source:
Returns:

public keys of all known nodes in the network, including the server's own keys

(inner) send(options)

Source:

Calls Tessera’s ThirdParty /send API to encrypts a payload, stores result in database, and publishes result to recipients.

Parameters:
Name Type Description
options Object
Properties
Name Type Description
data String

Hex encoded private transaction data (value of data/input field in the transaction)

privateFrom String

Sending party’s base64-encoded public key

privateFor String

public keys identifying the recipients of the payload

Returns:

A promise that resolves to the hex-encoded hash of the encrypted data (key field) that should be used to replace the data field of a transaction if externally signing.

(inner) storeRaw(options)

Source:

Calls Tessera’s ThirdParty /storeraw API to encrypt the provided data and store in preparation for a eth_sendRawPrivateTransaction.

Parameters:
Name Type Description
options Object
Properties
Name Type Description
data String

Hex encoded private transaction data (value of data/input field in the transaction)

privateFrom String

Sending party’s base64-encoded public key

Returns:

A promise that resolves to the hex-encoded hash of the encrypted data (key field) that should be used to replace the data field of a transaction if externally signing.

(inner) upCheck()

Source:
Returns:

"I'm up!"