@dappykit/sdk
Version:
Web3 SDK for DApps
24 lines (23 loc) • 436 B
TypeScript
/**
* Multihash interface
* https://github.com/saurfang/ipfs-multihash-on-solidity/blob/master/README.md
*/
export interface Multihash {
/**
* Hash of the data
*/
hash: string;
/**
* Hash function
*/
hashFunction: number;
/**
* Size
*/
size: number;
}
/**
* Gets a multihash from a hash
* @param hash The hash
*/
export declare function getMultihash(hash: string): Multihash;