SoulBounds is a custom smart contract for minting and managing non-transferable, identity-bound tokens known as Soul-Bound Tokens (SBTs). These tokens securely represent unique identities and provide a decentralized identifier. They can be used in identity verification, reputation management, and decentralized autonomous organizations (DAOs).
A Soul-Bound Token (SBT) is a non-transferable token (ntt) that uniquely identifies a person or entity on a blockchain. They are designed to function as digital badges that bind to a specific wallet address (soul). They can represent credentials like memberships, qualifications, or reputations. SBTs cannot be traded or moved, ensuring the identity and associated data remain bound to the original owner.
Even though the SBT pattern is known for being non-transferable, adding flags to allow the transfer of SBTs with payable support opens up new opportunities, such as the sale of in-game hero tokens. It's just for fun, so why not? :)
- Identity Verification: Digital identifiers can confirm ownership of memberships, licenses, or credentials.
- Reputation Management: SBTs can hold information about contributions, achievements, and track records.
- Decentralized Autonomous Organizations (DAOs): Voting or governance rights can be linked to SBTs.
-
Minting and Burning:
- Minting: The contract owner can create new souls (SBTs) with unique identities and metadata.
- Burning: Souls can be revoked by the owner or the individual soul holder.
-
Metadata Management:
- Allows owners to whitelist specific metadata keys and manage the associated data securely.
-
Pausable:
- Provides administrative control for pausing or unpausing the contract during critical events.
-
Token Withdrawal:
- Allows the owner to rescue tokens in the contract and transfer them to a specified address.
-
Minting: Use the
mint
function to create a new soul. Provide an address, unique identity, and URL associated with the new soul.function mint(address _soul, bytes calldata _identity, bytes calldata _url);
-
Unique ID Generation: Each soul gets a unique identifier (UUID) generated from a combination of the wallet address, timestamp, and other data.
-
Admin Metadata Creation: Admins can whitelist metadata keys using
allowMetadataKey
and then add metadata withsetMetadata
. The metadata is securely linked to the SBT.function allowMetadataKey(bytes32 _key); function setMetadata(address _soul, bytes32 _key, bytes calldata _value);
This project is licensed under the MIT License.
Contributions to expand or improve the repository are welcome!