Class: MoneroUtils

MoneroUtils()

Collection of Monero utilities.

Constructor

new MoneroUtils()

Source:

Methods

(static) getLastTxPubKey(txExtra)

Decodes tx extra according to https://cryptonote.org/cns/cns005.txt and returns the last tx pub key. TODO: use c++ bridge for this
Parameters:
Name Type Description
txExtra is an array of tx extra bytes
Source:
Returns:
the last pub key as a hexidecimal string

(async, static) getUtilsWasm()

Get a utility class which uses WebAssembly to access C++ utilities in the monero-cpp-library submodule.
Source:

(static) mergeTx(txs, tx)

Merges a transaction into a list of existing transactions.
Parameters:
Name Type Description
txs are existing transactions to merge into
tx is the transaction to merge into the list
Source:

(static) paymentIdsEqual(paymentId1, paymentId2)

Determines if two payment ids are functionally equal. For example, 03284e41c342f032 and 03284e41c342f032000000000000000000000000000000000000000000000000 are considered equal.
Parameters:
Name Type Description
paymentId1 is a payment id to compare
paymentId2 is a payment id to compare
Source:
Returns:
true if the payment ids are equal, false otherwise