turtlecoin-wallet-backend
Version:
[](https://npmjs.org/package/turtlecoin-wallet-backend)
23 lines (22 loc) • 743 B
JavaScript
// Copyright (C) 2018-2020, Zpalmtree
//
// Please see the included LICENSE file for more information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.transfersToVector = exports.txPrivateKeysToVector = void 0;
function txPrivateKeysToVector(txPrivateKeys) {
const arr = [];
for (const [hash, privateKey] of txPrivateKeys) {
arr.push({ transactionHash: hash, txPrivateKey: privateKey });
}
return arr;
}
exports.txPrivateKeysToVector = txPrivateKeysToVector;
function transfersToVector(transfers) {
const arr = [];
for (const [publicKey, amount] of transfers) {
arr.push({ amount, publicKey });
}
return arr;
}
exports.transfersToVector = transfersToVector;
;