ISCC - IPFS Tools#
IPFS wrapper
ipfs_cidv1(fp, wrap = False)
#
Create default IPFS CIDv1 for file at filepath fp
.
If wrap
is True, the file will be wrapped with a directory and the filname will be appended
to the directory CIDv1 with a /
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp |
str
|
Filepath |
required |
Returns:
Type | Description |
---|---|
str
|
IPFS CIDv1 of the file |
ipfs_cidv1_base16(fp)
#
Create IPFS CIDv1 with base16 encoding.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp |
str
|
Filepath |
required |
Returns:
Type | Description |
---|---|
str
|
IPFS CIDv1 of the file in base16 (hex) |