Joyboy protocol draft specification #43
AbdelStark
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Joyboy Protocol Specification Proposal
Introduction
The Joyboy protocol aims to leverage the decentralized nature of the Nostr protocol combined with the programmable capabilities of Starknet's account abstraction. Joyboy enables users to trigger onchain actions on Starknet through Nostr signed messages. This document provides a comprehensive specification for the Joyboy protocol, starting with two primary use cases: social pay and memecoin deployment and trading.
Protocol Overview
The Joyboy protocol defines a set of commands that users can send via Nostr messages to perform specific actions on Starknet. Each command follows a structured format and is signed using the user's Nostr private key. The protocol ensures that the commands are validated and executed securely on the Starknet blockchain.
Commands
Social Pay
The social pay command allows users to send tips in the form of tokens to other users. The command structure is as follows:
Command Structure:
Example:
Explanation:
joyboy send
: The action identifier for sending tokens.<AMOUNT>
: The amount of tokens to be sent.<TOKEN_SYMBOL>
: The symbol of the token to be sent.to <RECIPIENT_HANDLE>
: The recipient's handle on the Joyboy platform.Memecoin Deployment and Trading
The memecoin command allows users to deploy new memecoins and trade them. The command structure is as follows:
Command Structure:
Example:
Explanation:
joyboy meme new
: The action identifier for deploying a new memecoin.<TOKEN_NAME>
: The name of the new token.<TOKEN_SYMBOL>
: The symbol of the new token.<TOKEN_SUPPLY>
: The total supply of the new token.Message Signing and Validation
Every command sent via the Joyboy protocol must be signed using the sender's Nostr private key. The signature ensures the authenticity and integrity of the message. Clients will validate these signatures before forwarding the commands to Starknet.
Message Format
Each message must include the following components:
Example:
Onchain Action Execution
Upon receiving a valid command, the Joyboy client will interact with the custom Starknet account contract to execute the corresponding onchain action. The custom account contract will be programmed to recognize and execute the Joyboy protocol commands.
Security Considerations
TODOs
Design Questions:
Challenges:
Further Development:
Conclusion
The Joyboy protocol aims to bring decentralized social media interactions and onchain actions together, leveraging the strengths of Nostr and Starknet's account abstraction. This initial specification provides a foundation for further development and refinement, ensuring a secure and efficient protocol for the Joyboy platform.
Beta Was this translation helpful? Give feedback.
All reactions