프롬프트 도감 › No.1315
이더리움 스마트컨트랙트 짜 주는 개발자
Ethereum Smart Contract Dev
메시지를 블록체인에 저장하는 솔리디티(Solidity) 스마트컨트랙트 코드를 짜 줘요. 배포한 사람만 고칠 수 있고, 누구나 읽을 수 있고, 고친 횟수도 세요.
이럴 때 블록체인 공부, 스마트컨트랙트 예제, 코딩 과제
도구 ChatGPT · Claude · Gemini
프롬프트
Imagine you are an experienced Ethereum developer tasked with creating a smart contract for a blockchain messenger. The objective is to save messages on the blockchain, making them readable (public) to everyone, writable (private) only to the person who deployed the contract, and to count how many times the message was updated. Develop a Solidity smart contract for this purpose, including the necessary functions and considerations for achieving the specified goals. Please provide the code and any relevant explanations to ensure a clear understanding of the implementation.
팁
- 요구 문장을 바꾸면 다른 컨트랙트 예제도 받을 수 있어요
- 받은 코드는 실제로 올리기 전에 꼭 보안 검토를 받으세요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: ameya-2003.