UNPKG

@bithomp/xrpl-api

Version:

A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger

15 lines (14 loc) 481 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseSignerRegularKey = parseSignerRegularKey; const ripple_keypairs_1 = require("ripple-keypairs"); function parseSignerRegularKey(tx) { if (tx && tx.SigningPubKey && !tx.Signers) { const signedBy = (0, ripple_keypairs_1.deriveAddress)(tx.SigningPubKey); if (signedBy !== tx.Account) { return { address: signedBy, }; } } }