Payments.

Co-authored-by: Alan Evans <alan@signal.org>
Co-authored-by: Alex Hart <alex@signal.org>
Co-authored-by: Cody Henthorne <cody@signal.org>
This commit is contained in:
Android Team
2021-04-06 13:03:33 -03:00
committed by Alan Evans
parent c42023855b
commit fddba2906a
311 changed files with 18956 additions and 235 deletions

View File

@@ -70,6 +70,16 @@ message BodyRangeList {
repeated BodyRange ranges = 1;
}
message CryptoValue {
oneof Value {
MobileCoinValue mobileCoinValue = 1;
}
message MobileCoinValue {
string picoMobileCoin = 1;
}
}
message GroupCallUpdateDetails {
string eraId = 1;
string startedCallUuid = 2;

View File

@@ -0,0 +1,39 @@
syntax = "proto3";
package signal;
option java_package = "org.thoughtcrime.securesms.payments.proto";
option java_multiple_files = true;
message MobileCoinLedger {
message OwnedTXO {
uint64 amount = 1;
bytes keyImage = 2;
bytes publicKey = 3;
Block receivedInBlock = 4;
Block spentInBlock = 5;
}
message Block {
uint64 blockNumber = 1;
uint64 timestamp = 2;
}
uint64 balance = 1;
uint64 transferableBalance = 2;
Block highestBlock = 3;
uint64 asOfTimeStamp = 4;
repeated OwnedTXO spentTxos = 5;
repeated OwnedTXO unspentTxos = 6;
}
message PaymentMetaData {
message MobileCoinTxoIdentification {
repeated bytes PublicKey = 1;
repeated bytes KeyImages = 2;
}
MobileCoinTxoIdentification mobileCoinTxoIdentification = 1;
}