Hush Full Node software. We were censored from Github, this is where all development happens now.
https://hush.is
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef CROSSCHAIN_H
|
|
|
|
#define CROSSCHAIN_H
|
|
|
|
|
|
|
|
#include "cc/eval.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* On assetchain */
|
|
|
|
std::pair<uint256,MerkleBranch> GetAssetchainProof(uint256 hash, int &npIdx);
|
|
|
|
|
|
|
|
/* On KMD */
|
|
|
|
uint256 GetProofRoot(char* symbol, uint32_t targetCCid, int kmdHeight, std::vector<uint256> &moms, int* assetChainHeight);
|
|
|
|
|
|
|
|
/* On KMD */
|
|
|
|
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 */
|