Skip to content

Commit

Permalink
added ProofState
Browse files Browse the repository at this point in the history
  • Loading branch information
gohumble committed May 9, 2024
1 parent 8c1a382 commit ccff294
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions proofs.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,26 @@ syntax = "proto3";

package cashu.v1;
option go_package = "gen/go/cashurpc";
/*
A proof can be in one of the following states
A proof is UNSPENT if it has not been spent yet
A proof is PENDING if it is being processed in a transaction (in an ongoing payment). A PENDING proof cannot be used in another transaction until it is live again.
A proof is SPENT if it has been redeemed and its secret is in the list of spent secrets of the mint.
*/

enum ProofState {
unspecified = 0;
UNSPENT = 1;
PENDING = 2;
SPENT = 3;
}

message Proof {
uint64 amount = 1;
string id = 2;
string secret = 3;
string C = 4;
ProofState state = 5;
}

0 comments on commit ccff294

Please sign in to comment.