NFT Prototyp
sudo apt install nodejs
npm install -g truffle
Setup metamask and select localhost:8545
network.
docker-compose up
Sometimes the startup order get mixed up. If so restart the gateway docker container by typing
docker restart gateway
npx truffle migrate
Have fun!
MetaMask is a wallet software that can interact with most ERC compliant Ethereum Tokens. You can download MetaMask from here! To setup MetaMask, first connect to the Test RPC ganache had setup for you. Click on the network list on top of the MetaMask window and connect to the Test RPC by creating a custom RPC using the URL http://localhost:8545 under the chain ID 5777.
After you managed to connect to the right network, from the docker-compose log output copy the first private key and create a account in MetaMask.
Copy Key to--> |
MetaMask |
---|---|
![]() |
![]() |
Private Keys are 256 Bit (64 Hex) Hash Values generated by Elliptic Curve Encoding. To this Purpose the Nonce, Pass Value and Message Digest are fed into the keccak256 Function. Therefore Private Keys are pseudo-randomly generated Values that are the Corner Stone of Ethereum Encryption.
Derived from the Private Key, Public Keys are asymmetrical 160 Bit (40 Hex) Derivatives of the secret Private Key. This means they can be deduced by the Private Key and all Messages encode by the Private Key but can not be used to determine the Private Key or encode Messages in a similar Way. This is very helpful to determine the Identity of an Message Sender since only the Holder of the secret Private Key can have signed a Message showing the corresponding Public Key.
docker exec -it node /bin/sh
npx truffle test