Skip to content

Instantly share code, notes, and snippets.

Alex Miller alex-miller-0

Block or report user

Report or block alex-miller-0

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am alex-miller-0 on github.
  • I am crypto_alex (https://keybase.io/crypto_alex) on keybase.
  • I have a public key ASCNZTxlnnSURcR1AS2PG7TTnv2A7VJOybMnwhecbfGLago

To claim this, I am signing this object:

@alex-miller-0
alex-miller-0 / metaNFT.md
Created Mar 6, 2018
Meta-Non-Fungible Token
View metaNFT.md

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
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
alex-miller-0 / eth-utxo.md
Last active Sep 24, 2019
UTXO tokens on Ethereum
View eth-utxo.md

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
0x3db2ABc7efa4f8E053EbC24B699E14E75F61bBd8
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.