artree-nft-converter

This allows us to convert off-chain images to Ethereum NFT easily.

Usage no npm install needed!

<script type="module">
  import artreeNftConverter from 'https://cdn.skypack.dev/artree-nft-converter';
</script>

README

Artree NFT Converter

This allows us to convert off-chain images to Ethereum NFT easily.

Installation

$ npm i --save artree-nft-converter

Interface

interface StegParams {
    verification: Verification
    signature: Signature
}

interface Verification {
    owner: string
    creationHash: string
    tokenId: number
    commons: string
}

interface Signature {
    sha: string
    sig: string
}

Steg Params

The params embedded in image.

Field Name Content
owner Ethereum address of image owner
creationHash Transaction hash of this NFT created
tokenId NFT ID on Ethereum
commons Creative commons rule set
sha Sha hash for string verification
sig Owner signature