Last active
March 31, 2019 18:37
-
-
Save merlox/19b0c99df6d195c24db838925a2a433a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To configure new ERC721 assets | |
async displayBlueprint() { | |
const cert = new Cert({ | |
schema: schema88 | |
}) | |
const asset = { | |
description: 'A lighthouse watercolor picture', | |
image: 'https://upload.wikimedia.org/wikipedia/commons/a/a3/Taran_Lighthouse_Kalinigrad_Oblast_Tatiana_Yagunova_Watercolor_painting.jpg', | |
name: 'Lighthouse Watercolor' | |
} | |
// The imprint is the hashed proof for our asset | |
console.log('Imprint', await cert.imprint(asset)) | |
console.log('Expose', await cert.expose(asset, [['name'], ['image']])) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment