You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need the following API's implemented on top of the Ordering DAG (which in our case will simply be the MerkleReg)
typeOrderingDAG = MerkleReg<MaidTransaction>;typeInvertedDAG = BTreeMap<Hash,BTreeSet<Hash>>;// used for bootstrapping and traversing the DAG forwardstructMaidTransaction{// hash of the MaidTransaction that produced an output with this inputs public keyinputs:BTreeMap<PublicKey,Hash>,ringct:RingCtTransaction,// The actual transaction}
/// return the hashes of the most recent MaidTransactionsfnspentbook_roots(&self) -> BTreeSet<Hash>
/// return the MaidTransaction for the given hashfnspentbook_read(&self,tx_hash:Hash) -> Option<MaidTransaction>
/// returns the transactions that came after the transaction with hash `tx_hash`/// This will be used to traverse the SpentBook from the genesis onwards.fnspentbook_next_transactions(&self,tx_hash:Hash) -> Option<BTreeSet<Hash>>
The in memory dag would only be written to as/when we have log_spent in place.
This is just a quick issue to get the basics of a spent book in place.
The text was updated successfully, but these errors were encountered:
Where
Probably inside
sn/data/spentbook
What
We need the following API's implemented on top of the Ordering DAG (which in our case will simply be the MerkleReg)
The in memory dag would only be written to as/when we have
log_spent
in place.This is just a quick issue to get the basics of a spent book in place.
The text was updated successfully, but these errors were encountered: