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.

22 lines
604 B

6 years ago
#ifndef CROSSCHAIN_H
#define CROSSCHAIN_H
#include "cc/eval.h"
/* On assetchain */
6 years ago
std::pair<uint256,MerkleBranch> GetAssetchainProof(uint256 hash, int &npIdx);
6 years ago
/* On KMD */
uint256 GetProofRoot(char* symbol, uint32_t targetCCid, int kmdHeight, std::vector<uint256> &moms, int* assetChainHeight);
/* On KMD */
6 years ago
MerkleBranch GetCrossChainProof(uint256 txid, char* targetSymbol,
6 years ago
uint32_t targetCCid, uint256 notarisationTxid, MerkleBranch assetChainProof);
/* On assetchain */
bool ValidateCrossChainProof(uint256 txid, int notarisationHeight, MerkleBranch proof);
#endif /* CROSSCHAIN_H */