wip
This commit is contained in:
21
src/crosschain.h
Normal file
21
src/crosschain.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef CROSSCHAIN_H
|
||||
#define CROSSCHAIN_H
|
||||
|
||||
#include "cc/eval.h"
|
||||
|
||||
|
||||
/* On assetchain */
|
||||
std::pair<uint256,MerkleBranch> GetAssetchainProof(uint256 hash);
|
||||
|
||||
/* On KMD */
|
||||
uint256 GetProofRoot(char* symbol, uint32_t targetCCid, int kmdHeight, std::vector<uint256> &moms, int* assetChainHeight);
|
||||
|
||||
/* On KMD */
|
||||
std::pair<uint256,MerkleBranch> GetCrossChainProof(uint256 txid, char* targetSymbol,
|
||||
uint32_t targetCCid, uint256 notarisationTxid, MerkleBranch assetChainProof);
|
||||
|
||||
/* On assetchain */
|
||||
bool ValidateCrossChainProof(uint256 txid, int notarisationHeight, MerkleBranch proof);
|
||||
|
||||
|
||||
#endif /* CROSSCHAIN_H */
|
||||
Reference in New Issue
Block a user