mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Checking sketch of JS libs.
This commit is contained in:
38
js/transaction.js
Normal file
38
js/transaction.js
Normal file
@@ -0,0 +1,38 @@
|
||||
// Work with transactions.
|
||||
//
|
||||
// This works for both trusted and untrusted servers.
|
||||
//
|
||||
// For untrusted servers:
|
||||
// - We never send a secret to an untrusted server.
|
||||
// - Convert transactions to and from JSON.
|
||||
// - Sign and verify signatures.
|
||||
// - Encrypt and decrypt.
|
||||
//
|
||||
// For trusted servers:
|
||||
// - We need a websocket way of working with transactions as JSON.
|
||||
// - This allows us to not need to port the transaction tools to so many
|
||||
// languages.
|
||||
//
|
||||
|
||||
var commands = {};
|
||||
|
||||
commands.buildSend = function(params) {
|
||||
var srcAccountID = params.srcAccountID;
|
||||
var fee = params.fee;
|
||||
var dstAccountID = params.dstAccountID;
|
||||
var amount = params.amount;
|
||||
var sendMax = params.sendMax;
|
||||
var partial = params.partial;
|
||||
var limit = params.limit;
|
||||
};
|
||||
|
||||
|
||||
exports.trustedCreate = function() {
|
||||
|
||||
};
|
||||
|
||||
exports.untrustedCreate = function() {
|
||||
|
||||
};
|
||||
|
||||
// vim:ts=4
|
||||
Reference in New Issue
Block a user