Skip to content

Instantly share code, notes, and snippets.


Alex Miller alex-miller-0

View GitHub Profile

Keybase proof

I hereby claim:

  • I am alex-miller-0 on github.
  • I am crypto_alex ( on keybase.
  • I have a public key ASCNZTxlnnSURcR1AS2PG7TTnv2A7VJOybMnwhecbfGLago

To claim this, I am signing this object:

alex-miller-0 /
Created Mar 6, 2018
Meta-Non-Fungible Token

Meta-Non-Fungible Token

Non-fungible tokens (NFTs) are all the rage these days, but their current manifestation (ERC721) is inefficient. It is not possible to move multiple tokens at the same time or package multiple tokens for e.g. deposit into a plasma child chain.

Contract pseudocode

The following is a new design for an NFT token that allows aggregation of assets. The rest of the functionality can be inherited from ERC721.

contract NFT {
  tokens mapping(address => mapping(bytes32 => uint));
alex-miller-0 / plasma-withdrawal-mockup.sol
Created Mar 1, 2018
Mockup of withdrawals in a UTXO plasma system
View plasma-withdrawal-mockup.sol
struct Deposit {
address to;
uint value;
struct Withdrawal {
uint status; // number (timestamp) = started, 2 = finished, 3 = failed
address owner;
uint value;
mapping (bytes32 => Deposit) deposits;
alex-miller-0 /
Last active Dec 4, 2020
UTXO tokens on Ethereum

Suppose we wish to model a UTXO system on the EVM. We need to represent UTXO tokens such that all value is preserved when tokens are spent. Note: For this example, we are not concerned about the security of the system and are satisfied with giving authorities the power to create tokens (e.g. as in a plasma system).

Consider the following object:

  owner: <address>,
  value: <uint>,
View RinkebyVerification
View STARTUP.txt
Loading SOFC webpage locally
1) Navigate to the directory with this document in your terminal.
2*) Run the command:
python -m SimpleHTTPServer
3) Open your browser and navigate to the address:
You can’t perform that action at this time.