Skip to content

Instantly share code, notes, and snippets.

@merlox
Last active March 31, 2019 18:37
Show Gist options
  • Save merlox/19b0c99df6d195c24db838925a2a433a to your computer and use it in GitHub Desktop.
Save merlox/19b0c99df6d195c24db838925a2a433a to your computer and use it in GitHub Desktop.
// 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