UNPKG
incubed
Version:
latest (1.1.41)
1.1.41
1.1.10
1.1.9
1.1.6
Typescript-version of the incubed client
github.com/slockit/in3
slockit/in3
incubed
/
js
/
src
/
modules
/
ipfs
/
ipfs.d.ts
7 lines
(6 loc)
•
279 B
TypeScript
View Raw
1
2
3
4
5
6
7
/** * creates a IPFS-Hash from content *
@param
content
*/
export
declare
function
createIPFSHash
(
content
:
Buffer
,
hashAlg
?:
string
):
Promise
<
string
>;
export
declare
function
verifyIPFSHash
(
content
:
string
|
Buffer
,
encoding
:
string
,
requestedHash
:
string
):
Promise
<
boolean
>;