2021-04-06 13:03:33 -03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package signal;
|
|
|
|
|
|
|
|
option java_package = "org.thoughtcrime.securesms.payments.proto";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
|
|
|
|
message MobileCoinLedger {
|
|
|
|
|
|
|
|
message OwnedTXO {
|
2024-01-04 16:33:55 -05:00
|
|
|
uint64 deprecatedAmount = 1;
|
|
|
|
bytes amount = 6;
|
|
|
|
bytes keyImage = 2;
|
|
|
|
bytes publicKey = 3;
|
|
|
|
Block receivedInBlock = 4;
|
|
|
|
Block spentInBlock = 5;
|
|
|
|
// Next is 7
|
2021-04-06 13:03:33 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
message Block {
|
|
|
|
uint64 blockNumber = 1;
|
|
|
|
uint64 timestamp = 2;
|
|
|
|
}
|
|
|
|
|
2024-01-04 16:33:55 -05:00
|
|
|
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
|
2021-04-06 13:03:33 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
message PaymentMetaData {
|
|
|
|
|
|
|
|
message MobileCoinTxoIdentification {
|
2023-09-18 15:32:43 -04:00
|
|
|
repeated bytes publicKey = 1;
|
|
|
|
repeated bytes keyImages = 2;
|
2021-04-06 13:03:33 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
MobileCoinTxoIdentification mobileCoinTxoIdentification = 1;
|
|
|
|
}
|