Git Product home page Git Product logo

unsigned_algorithms's Introduction

unsigned_algorithms

On-chain NFT project on Cardano

Click the Binder button below to open up an interactive Python/Jupyterlab instance to run the code in this repository, after it loads, double-click "unsig_gen.ipynb" on the left.

Binder

Easy

  1. Go to https://www.unsigs.com/details/##### (replace ###### with the 5 digit number, including leading zeros, of your unsig)

  2. Type the properties you see on your unsig's page, into the notebook unsig_gen.ipynb - if you don't want to make a mistake, copy the portion between the square brackets ( "[" and "]" ) for each property, into the notebook.

  3. Run all the cells in the notebook (press "SHIFT + ENTER" to run each cell, or select "Run" from the menu at the top and then "Run All Cells")

Medium

Getting metadata:

  1. Go to https://cardanoscan.io and paste the transaction (something like 91363703c99b14c6f980b19d435b9f78a9cee6f98c1ff9be5e5e4cc3ba44ee6b) where you received your unsigs into the search box.

  2. Click the "Metadata" tab

  3. Click the "{ }" text below the "Value" entry, this has the metadata of the minting transaction of your transaction, if you bought in an early phase, there may be multiple unsigs in a single mint transaction. In that case, you need to look for the unsig##### that matches the unsig you are looking for.

  4. There are multiple KEY:VALUE pairs in this metadata. A KEY is kind of like an address or name, and the VALUE is what is stored at that address.

  5. You should see something like what is shown below:

         unsigs: {
                     index: 17429,
                     num_props: 5,
                     properties: {
                        colors: [
                           "Red",
                           "Green",
                           "Blue",
                           "Green",
                           "Blue"
                        ],
                        distributions: [
                           "CDF",
                           "CDF",
                           "CDF",
                           "CDF",
                           "CDF"
                        ],
                        multipliers: [
                           "0.5",
                           "1",
                           "1",
                           "2",
                           "4"
                        ],
                        rotations: [
                           "0",
                           "270",
                           "180",
                           "180",
                           "90"
                        ]
                     }
                  }
    

You need to copy the part AFTER "unsigs: " from the first "{" to the corresponding "}" at the end (there are 2 right after each other, the first one closes the "{" after the properties KEY).

  1. Paste that into the unsig_gen.ipynb notebook in this repository, after the "unsig = " statement
  2. You will need to add quotes around the KEYS (the words: index, num_props, properties, colors, distributions, multipliers and rotations) due to differences between how the metadata is recorded on Cardano and what Python expects.
  3. You will need to remove quotes around the numbers in the lists of multipliers and rotations (in the example above 0.5, 1, 1, 2, 4 and 0, 270, 180, 180, 90

Bonus time (just for your info)

  1. The code for unsig_gen.ipynb is stored on Cardano, in our genesis unsig00000: you can see this in the metadata under the key "source_tx_id". Try copying the value stored at source_tx_id into cardanoscan.io.

  2. Traverse over the metadata in that transaction, following the keys listed in your unsig under "source_key" ("721", genesis_tx_id, "unsig00000", "files", "code") to find the code that is in the notebook provided for you. This code, and the accompanying environment file, are sufficient to recreate your unsigs from almost any computer.

Hard

Compile and run an instance of cardano-node and cardano-db-sync, query the raw node data for your transaction over postgresql. If you know how to do this you don't need this guide :D

unsigned_algorithms's People

Contributors

alexanderwatanabe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.