코인, 토큰, ERC-20 스펙
kr·@ingee·
0.000 HBD코인, 토큰, ERC-20 스펙
# 코인(Coin)과 토큰(Token) * 코인과 토큰은 모두 암호화폐 - 계좌에 저장되는 단위 (a unit of account) - 가치의 저장소 (a store of value) - 거래의 수단 (a medium of exchange) * 코인은 독자적인 블록체인 네트워크를 소유 - 비트코인 네트워크의 비트코인 (BTC) - 이더리움 네트워크의 이더 (ETH) * 토큰 - 기존 블록체인 네트워크 위에서 특정 자산을 표현 - 교환 가능한 모든 자산은 토큰으로 표현 가능 - 토큰을 정의하는 일은 코인을 정의하는 일보다 쉬움 (기존 블록체인 네트워크를 활용하기 때문) # ERC-20 스펙 * ERC-20 스펙이란? - Ethereum Request for Comment 20 - 이더리움 위에서 발행되는 토큰의 표준 - ERC-20 스펙에 맞게 토큰을 발행하면 1) 이더(ETH)와 쉽게 교환할 수 있고 2) 표준 이더리움 지갑 (MEW, Meta Mask, Mist 등)으로 자유롭게 저장/교환 가능 - ERC-20 스펙 definition ``` contract ERC20 { function totalSupply() constant returns (uint supply); function balanceOf( address who ) constant returns (uint value); function allowance( address owner, address spender ) constant returns (uint _allowance); function transfer( address to, uint value) returns (bool ok); function transferFrom( address from, address to, uint value) returns (bool ok); function approve( address spender, uint value ) returns (bool ok); event Transfer( address indexed from, address indexed to, uint value); event Approval( address indexed owner, address indexed spender, uint value); } ``` # ref * [Coins, Tokens & Altcoins: What’s the Difference?](https://masterthecrypto.com/differences-between-cryptocurrency-coins-and-tokens/) * [알트코인(토큰)은 정말 필요할까? - 2](https://steemit.com/ico/@dhoick/2) * [코인 vs 토큰 차이](https://steemit.com/tokens/@biotrans/vs) * [ERC20 토큰과 Smart contract에 대해서 알아보자.](https://steemit.com/kr/@kims172/erc20-smart-contract) * [ERC20(Ethereum Request for Comments 20)토큰이란?](https://steemit.com/erc20/@coininformation/erc20-ethereum-request-for-comments-20)
👍 ingee, victoriaasmut,