프로그래밍/Solidity

솔리디티란?

autostar 2022. 1. 12.
반응형

위키백과에서 발췌한 솔리디티 정의

이더리움의 주 언어중 하나.

스마트 컨트랙트를 작성할때 쓰이는데 스마트 컨트랙트는 네트워크 상에서 동작하게 할수 있는 작은 프로그래밍같은 존재이다. 네트워크에서 돌아야 하기 때문에 용량이 클수록 리소스가 소요되고, 비용으로 처리된다. 

 

 

 

솔리디티 플랫폼

Remix IDE 는 웹에서 솔리디티를 체험해볼수 있는 개발환경이다.

깃허브와 연동도 되며, 로컬로 저장도 가능하다.

비쥬얼스튜디오에서도 솔리디티를 써볼수 있다.

 

주로 이더리움에서 동작하며, 클레이튼에서도 동작한다.

 

Solidity is an object-oriented, high-level language for implementing smart contracts. Smart contracts are programs which govern the behaviour of accounts within the Ethereum state.

Solidity is a curly-bracket language. It is influenced by C++, Python and JavaScript, and is designed to target the Ethereum Virtual Machine (EVM). You can find more details about which languages Solidity has been inspired by in the language influences section.

Solidity is statically typed, supports inheritance, libraries and complex user-defined types among other features.

With Solidity you can create contracts for uses such as voting, crowdfunding, blind auctions, and multi-signature wallets.

 - solidity 공홈

 

솔리디티는 스마트계약(네트워크에서 동작하는 비즈니스로직)을 구현하는 객체지향 언어이다.

스마트계약(스마트 컨트랙트)는 블록체인 2세대부터 나온 개념인데 이더리움에서 동작한다.

솔리디티는 자바스크립트와 굉장히 비슷한데, C++, 파이썬, 자바스크립트에 영향을 받았고 EVM 에 동작하기 위해 쓰입니다. 

 

EVM 은 이더리움 버츄얼 머신 약자로 솔리디티는 이 EVM 에서 동작합니다.

 

블록체인으로 투표 시스템을 만들거나, 코인을 만들거나, 호텔 예약 시스템을 만들때 솔리디티를 사용한다고 보면 됩니다.

 

 

 

 

 

 

Reference

  • 공홈

 

반응형

댓글