Skip to content

ISCC-ID#

A decentralized short identifier for digital assets.

The ISCC-ID is generated from a similarity-hash of the components of an ISCC-CODE. Its SubType designates the blockchain from which the ISCC-ID was minted. The similarity-hash is always at least 64-bits and optionally suffixed with a uvarint endcoded uniqueness counter. The uniqueness counter is added and incremented only if the mint colides with a pre-existing ISCC-ID minted from the same blockchain from a different ISCC-CODE or from an identical ISCC-CODE registered by a different signatory.

gen_iscc_id(chain, iscc_code, uc = 0) #

Generate ISCC-ID from ISCC-CODE with the latest standard algorithm.

Parameters:

Name Type Description Default
chain int

Chain-ID of blockchain from which the ISCC-ID is minted.

required
iscc_code str

The ISCC-CODE from which to mint the ISCC-ID.

required
uc int

Uniqueness counter of ISCC-ID.

0

Returns:

Type Description
dict

ISCC object with an ISCC-ID

gen_iscc_id_v0(chain_id, iscc_code, uc = 0) #

Generate an ISCC-ID from an ISCC-CODE with uniqueness counter 'uc' with algorithm v0.

Parameters:

Name Type Description Default
chain_id int

Chain-ID of blockchain from which the ISCC-ID is minted.

required
iscc_code str

The ISCC-CODE from which to mint the ISCC-ID.

required
uc int

Uniqueness counter for ISCC-ID.

0

Returns:

Type Description
dict

ISCC object with an ISCC-ID

soft_hash_iscc_id_v0(iscc_code, uc = 0) #

Calculate ISCC-ID hash digest from ISCC-CODE digest with algorithm v0.

Parameters:

Name Type Description Default
iscc_code str

ISCC-CODE

required
uc int

Uniqueness counter for ISCC-ID.

0

Returns:

Type Description
bytes

Digest for ISCC-ID without header but including uniqueness counter.

incr_iscc_id(iscc_id) #

Increment uniqueness counter of an ISCC-ID with latest standard algorithm.

Parameters:

Name Type Description Default
iscc_id str

Base32-encoded ISCC-ID.

required

Returns:

Type Description
str

Base32-encoded ISCC-ID with counter incremented by one.

incr_iscc_id_v0(iscc_id) #

Increment uniqueness counter of an ISCC-ID with algorithm v0.

Parameters:

Name Type Description Default
iscc_id str

Base32-encoded ISCC-ID.

required

Returns:

Type Description
str

Base32-encoded ISCC-ID with counter incremented by one.