44 lines
1.1 KiB
Protocol Buffer
44 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package signal;
|
|
|
|
option java_package = "org.thoughtcrime.securesms.payments.proto";
|
|
option java_multiple_files = true;
|
|
|
|
message MobileCoinLedger {
|
|
|
|
message OwnedTXO {
|
|
uint64 deprecatedAmount = 1;
|
|
bytes amount = 6;
|
|
bytes keyImage = 2;
|
|
bytes publicKey = 3;
|
|
Block receivedInBlock = 4;
|
|
Block spentInBlock = 5;
|
|
// Next is 7
|
|
}
|
|
|
|
message Block {
|
|
uint64 blockNumber = 1;
|
|
uint64 timestamp = 2;
|
|
}
|
|
|
|
uint64 deprecatedBalance = 1;
|
|
bytes balance = 7;
|
|
uint64 deprecatedTransferableBalance = 2;
|
|
bytes transferableBalance = 8;
|
|
Block highestBlock = 3;
|
|
uint64 asOfTimeStamp = 4;
|
|
repeated OwnedTXO spentTxos = 5;
|
|
repeated OwnedTXO unspentTxos = 6;
|
|
// Next is 9
|
|
}
|
|
|
|
message PaymentMetaData {
|
|
|
|
message MobileCoinTxoIdentification {
|
|
repeated bytes publicKey = 1;
|
|
repeated bytes keyImages = 2;
|
|
}
|
|
|
|
MobileCoinTxoIdentification mobileCoinTxoIdentification = 1;
|
|
}
|