Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pub_key: convertToInternalPubKey(rawPubKey, _TYPE.PubKeySecp256k1),
signature: ByteBuffer.fromHex(rawSigDER).toString('base64'),
account_number: '0',
sequence: String(seq)
};
const stdTx = {
msg: msgs,
signatures: [stdSig],
fee: getZeroFee()
};
const authStdTx = {
type: 'auth/StdTx',
value: number2StringInObject(stdTx)
};
const jsonStr = JSON.stringify(authStdTx);
return ByteBuffer.btoa(jsonStr);
}
function decodeObject(result) {
};
sigs.push(stdSig);
}
const stdTx: StdTx = {
msg: msgs,
signatures: sigs,
fee: getFee(maxFeeInCoin)
};
const authStdTx: StdMsg = {
type: 'auth/StdTx',
value: number2StringInObject(stdTx)
};
const jsonStr = JSON.stringify(authStdTx);
return ByteBuffer.btoa(jsonStr);
}