432 lines
24 KiB
Markdown
432 lines
24 KiB
Markdown
# **Token Technologies Standards And Protocols**
|
||
|
||
## Table of Contents
|
||
|
||
- [**Admin**](#admin)
|
||
- [**Token Standards Overview**](#token-standards-overview)
|
||
- [**Token Uses**](#token-uses)
|
||
- [**Token Database Fields**](#token-database-fields)
|
||
- [**Identification Fields**](#identification-fields)
|
||
- [token\_brand\_URL](#token_brand_url)
|
||
- [Token\_brand\_public\_key](#token_brand_public_key)
|
||
- [token\_ID](#token_id)
|
||
- [token\_creator\_prefix\_URL](#token_creator_prefix_url)
|
||
- [token\_page\_QR\_code](#token_page_qr_code)
|
||
- [media\_displayed](#media_displayed)
|
||
- [media\_displayed\_editable](#media_displayed_editable)
|
||
- [token\_class](#token_class)
|
||
- [soulbound](#soulbound)
|
||
- [Token\_owner\_public\_key](#token_owner_public_key)
|
||
- [ token\_name](#-token_name)
|
||
- [Obsolete \- No Longer Used](#obsolete---no-longer-used)
|
||
- [*relay\_server\_URL*](#relay_server_url)
|
||
- [**Update/append/reprogram**](#updateappendreprogram)
|
||
- [token\_description\_brand](#token_description_brand)
|
||
- [token\_description\_owner](#token_description_owner)
|
||
- [token\_creation\_date-time](#token_creation_date-time)
|
||
- [token\_updates\_date\_time](#token_updates_date_time)
|
||
- [**Communication and communities**](#communication-and-communities)
|
||
- [Summary](#summary)
|
||
- [Email/SMS/Chat App Integration](#emailsmschat-app-integration)
|
||
- [**Transaction Types**](#transaction-types)
|
||
- [Secondary market royalties](#secondary-market-royalties)
|
||
- [*IP\_owner\_royalty\_payout*](#ip_owner_royalty_payout)
|
||
- [*IP\_owner\_royalty\_percentage*](#ip_owner_royalty_percentage)
|
||
- [*IP\_owner\_royalty\_fee*](#ip_owner_royalty_fee)
|
||
- [*business\_legal\_name*](#business_legal_name)
|
||
- [*depositor\_bank\_payout\_name*](#depositor_bank_payout_name)
|
||
- [*depositor\_bank\_address*](#depositor_bank_address)
|
||
- [*bank\_routing\_number*](#bank_routing_number)
|
||
- [*bank\_account\_number*](#bank_account_number)
|
||
- [*account\_type*](#account_type)
|
||
- [*swift\_code*](#swift_code)
|
||
- [**Tokens and AI**](#tokens-and-ai)
|
||
- [**Structured Search**](#structured-search)
|
||
- [**Semantic Discovery**](#semantic-discovery)
|
||
|
||
# **Admin**
|
||
|
||
Google doc URL for this document: [https\://docs.google.com/document/d/1xtnelXV0I7QmBYovf2G0AX5Qh6lVNC8ayaR5T4271v8/edit?usp=sharing](https://docs.google.com/document/d/1xtnelXV0I7QmBYovf2G0AX5Qh6lVNC8ayaR5T4271v8/edit?usp=sharing)
|
||
|
||
This document is part of the Token Tech Knowledgbase that lives at [https\://eddiesoehnel.com/token-tech-for-consumer-brands/](https://eddiesoehnel.com/token-tech-for-consumer-brands/)
|
||
|
||
# **Token Standards Overview**
|
||
|
||
As we are going to use tokens to represent things (or people.entities, place, events or experiences), what does that look like from a more technical basis?
|
||
|
||
Tokens live in a database. Databases have rows, or records, and fields, or columns. A field in a database is like a column in a spreadsheet. It holds specific information about a particular aspect of a record. Imagine a table where each row represents a token and each column represents a specific detail about that item.
|
||
|
||
As we discussed, creators, which would be brands or even consumers, can create tokens to represent anything they want.
|
||
|
||
Creating a token would be creating a new record in a database. A brand could have a database where its tokens that it creates are stored. A consumer can have an app that creates and stores tokens in its database.
|
||
|
||
The databases could be different, but if the field names are the same, then it makes it much easier to transfer tokens between databases. This is where interoperability comes in. A brand could create a token, which a consumer receives, and the consumer could transfer that token to another app, if they choose. Other parallel concepts to this include [local-first](https://www.inkandswitch.com/local-first/) and [ejectable](https://thymer.com/local-first-ejectable) apps
|
||
|
||
The standards that this document proposes are simply fields and their names, which represent columns of data, tied to rows, with each row representing a token. As long as we all conform to the field names, we can achieve interoperability.
|
||
|
||
Tokens are mostly just fields of data but can also include software. Applications are code or software written to interact and do things based on the data. A brand could have a database for tokens and write software to interact with the tokens and do things based on what the data in the token is telling it to do.
|
||
|
||
When we all conform to the standards, which are the field names for a database, and we allow consumers to transfer their tokens, then we can achieve decentralized and deplatformed tokens that are not controlled by any one company or platform.
|
||
|
||
The tokens themselves can be transferred in the JSON format. Like the CSV format, which most people are familiar with, JSON is used extensively to transfer data between bases.
|
||
|
||
Think also of serverless containers, which are cloud computing solutions that combine the benefits of both containerization and serverless architecture. They enable developers to run containerized applications without managing the underlying server infrastructure. The containers package an application and its dependencies, ensuring consistency across different environments. With tokens, we are looking to do the same, where we package all the data and possibly software so that it can be moved into different apps.
|
||
|
||
# **Token Uses**
|
||
|
||
We’ll organize this document by token uses. We’ll go off of the general uses created in the document “[Token Technology Overview For Consumer Brands](https://eddiesoehnel.com/tokentech/token-technology-overview-for-consumer-brands/)”. This list is hyperlinked to the section that contains the token database fields that would represent the standards that everyone uses. We’ll add standards to support these use cases over time.
|
||
|
||
* [Update/append/reprogram](#token_description_brand);
|
||
* Share, likes, upvotes, follows;
|
||
* [Communication and communities](#communication-and-communities);
|
||
* Link or associate tokens to each other;
|
||
* [Transaction types](#transaction-types):
|
||
1. Buy
|
||
2. Sell
|
||
3. Borrow
|
||
4. Lend
|
||
5. Fractionalize
|
||
6. Insure
|
||
7. Borrowing against their value
|
||
8. [Secondary market royalties](#secondary-market-royalties)
|
||
9. Accumulate benefits
|
||
10. Credentialing
|
||
* Search;
|
||
* Signaling;
|
||
* Advertising;
|
||
* Tracking and Circularity.
|
||
|
||
# **Token Database Fields**
|
||
|
||
## **Identification Fields**
|
||
|
||
We need to list the fields that would be used to identify each token.
|
||
|
||
### token\_brand\_URL
|
||
|
||
Description:
|
||
|
||
This is the URL in which data and software updates are pulled from by the token. This is the URL where the relay server directs the token to get updates. This could be something like
|
||
|
||
[https\://tokens.example.com](https://tokens.example.com) or [https\://example.com/tokens](https://example.com/tokens)
|
||
|
||
The challenge with this field with respect to the [Public Lands Use Case](https://eddiesoehnel.com/tokentech/use-case-boost-conservation-stewardship-and-funding-for-public-lands/) is that the brand URL is technically the URL for the government body that manages the public land. But our goal is to enable this use case without interfacing with government body website/systems, because that would likely slow down implementation of this use case. The question then becomes, who owns the brand URL? If a third-party technology provider builds the system and they own it, how can ownership transfer to a new provider? This is one reason why there is a need for a [relay server](#heading=h.336u5keu8fvi).
|
||
|
||
### Token\_brand\_public\_key
|
||
|
||
If the brand URL ever needs to be changed where data gets pulled for the token, or any other data about the token controlled by the brand, then a public/private key pair is created, where the brand retains the private key to make changes. The public key is stored here. It never changes, as the private key is always retained by the brand. Use post-quantum cryptography to futureproof the security.
|
||
|
||
More on key pairs in the ID standard tools:
|
||
|
||
* Product: [https\://docs.google.com/document/d/16JtMeXQcz2f8rCC6uYjLV9WqB-mM2mnmEMLYCeAZaYc/edit?usp=sharing](https://docs.google.com/document/d/16JtMeXQcz2f8rCC6uYjLV9WqB-mM2mnmEMLYCeAZaYc/edit?usp=sharing)
|
||
* Place: [https\://docs.google.com/document/d/1mcT6TAR8pcWgepcBJ5q0lRcwJt3k7H6IuWQTIVSG51Y/edit?usp=sharing](https://docs.google.com/document/d/1mcT6TAR8pcWgepcBJ5q0lRcwJt3k7H6IuWQTIVSG51Y/edit?usp=sharing)
|
||
* People/entity: not yet developed
|
||
* Event: not yet developed
|
||
* Experience: not yet developed
|
||
|
||
After creation:
|
||
|
||
- [ ] Editable Field
|
||
- [x] Non-editable Field
|
||
|
||
### token\_ID
|
||
|
||
* Product: [https\://docs.google.com/document/d/16JtMeXQcz2f8rCC6uYjLV9WqB-mM2mnmEMLYCeAZaYc/edit?usp=sharing](https://docs.google.com/document/d/16JtMeXQcz2f8rCC6uYjLV9WqB-mM2mnmEMLYCeAZaYc/edit?usp=sharing)
|
||
* Place: [https\://docs.google.com/document/d/1mcT6TAR8pcWgepcBJ5q0lRcwJt3k7H6IuWQTIVSG51Y/edit?usp=sharing](https://docs.google.com/document/d/1mcT6TAR8pcWgepcBJ5q0lRcwJt3k7H6IuWQTIVSG51Y/edit?usp=sharing)
|
||
* People/entity: not yet developed
|
||
* Event: not yet developed
|
||
* Experience: not yet developed
|
||
|
||
### token\_creator\_prefix\_URL
|
||
|
||
Description:
|
||
|
||
This is the URL/domain name that the creator owns which is used to authenticate their identity. If the creator is Nike, they could use nike.com as the URL because they can authenticate that they own it. A consumer can use the company prefix name and this prefix URL to help authenticate that the token they are receiving or own is from Nike.
|
||
|
||
This field helps prevent conflicts, whether by accident or intentional. Token creators do not have to follow the token\_ID format, but if they do not, they risk, whether by accident or intentionally, creating a token ID that is the same as another token ID. Nike could be a creator, but a nefarious character could also create their own prefix titled as Nike. How would a consumer know? An authorization system could be put in place via domain name ownership that helps authenticate owners A nefarious character could still create a company prefix called Nike, but the URL is not nike.com, because on creating a company prefix, the nefarious character cannot authenticate that they own nike.com. So when the token is created, it might show the creator name as Nike, but the token URL is not nike.com.
|
||
|
||
We want to implement a 3rd party domain name authenticator similar to how it is done now with websites where services create a unique file that the owner can deposit into the top level of their domain directory, then the service can authenticate.
|
||
|
||
Note: we may not need need this field any longer. Authentication is done via the services or processes described above to uniquely represent entities, people, places, things, events, experiences. .
|
||
|
||
### token\_page\_QR\_code
|
||
|
||
Description:
|
||
|
||
The secure QR code that represents the web-based consumer facing page that displays the token information.
|
||
|
||
### media\_displayed
|
||
|
||
Description:
|
||
|
||
Tokens are represented by media: images, video, audio. This field accepts a URL where the media is hosted. Cloud storage options are prevalent and consumers are used to using them, so we would ideally push users to use them and just link from the token to the cloud storage or media album.
|
||
|
||
After creation:
|
||
|
||
- [x] Editable Field
|
||
- [ ] Non-editable Field
|
||
|
||
This could be an editable field because creators may want to update the media as they so choose. But what if this is a true collectible like an NFT that represents a unique media item or a limited number of same media items? In this case, the next field applies.
|
||
|
||
### media\_displayed\_editable
|
||
|
||
Description
|
||
|
||
Multiple choice yes/no.
|
||
|
||
### token\_class
|
||
|
||
Description:
|
||
|
||
Multiple choice to identify the type of token and what it represents
|
||
|
||
* People/Entity
|
||
* Place
|
||
* Thing
|
||
* Event
|
||
* Experience
|
||
|
||
After creation:
|
||
|
||
- [ ] Editable Field
|
||
- [x] Non-editable Field
|
||
|
||
### soulbound
|
||
|
||
Description:
|
||
|
||
Multiple choice yes/no. This token can never be transferred to another entity or person as it is tied to a person (soul). It could be used to identify a person, a government issued ID or some other identification tied to an individual. A user can have multiple soulbound tokens. For social graphs, a user can share their soulbound token (the one that is used to identify them) with others.
|
||
|
||
After creation:
|
||
|
||
- [ ] Editable Field
|
||
- [x] Non-editable Field
|
||
|
||
### Token\_owner\_public\_key
|
||
|
||
This is the public key where the current owner of the token retains the private key. It is changed/updated when ownership changes to a new wallet. Use post-quantum cryptography to futureproof the security.
|
||
|
||
More on key pairs in the ID standard tools:
|
||
|
||
* Product: [https\://docs.google.com/document/d/16JtMeXQcz2f8rCC6uYjLV9WqB-mM2mnmEMLYCeAZaYc/edit?usp=sharing](https://docs.google.com/document/d/16JtMeXQcz2f8rCC6uYjLV9WqB-mM2mnmEMLYCeAZaYc/edit?usp=sharing)
|
||
* Place: [https\://docs.google.com/document/d/1mcT6TAR8pcWgepcBJ5q0lRcwJt3k7H6IuWQTIVSG51Y/edit?usp=sharing](https://docs.google.com/document/d/1mcT6TAR8pcWgepcBJ5q0lRcwJt3k7H6IuWQTIVSG51Y/edit?usp=sharing)
|
||
* People/entity: not yet developed
|
||
* Event: not yet developed
|
||
* Experience: not yet developed
|
||
|
||
After creation:
|
||
|
||
- [x] Editable Field
|
||
- [ ] Non-editable Field
|
||
|
||
### token\_name
|
||
|
||
Description:
|
||
|
||
This is name, title, or some descriptive text that a user can use to label or describe the token, similar to naming a file. Format is short form text.
|
||
|
||
After creation:
|
||
|
||
- [ ] Editable Field
|
||
- [x] Non-editable Field
|
||
|
||
### Obsolete \- No Longer Used
|
||
|
||
#### *relay\_server\_URL*
|
||
|
||
Description:
|
||
|
||
This is the URL in which the token queries in order to obtain the correct URL at the brand from which to pull new data and software.
|
||
|
||
I will keep the original thinking below, but this may be redundant. The [brand URL](#token_brand_url) is where the token goes to get updates, and if this changes, then that is where there is a [public/private key pair](#token_brand_public_key) to allow the brand to change this, which would update in the token’s data field.
|
||
|
||
—-----------------------------
|
||
|
||
The reason for a relay server is because companies could change URLs on their end and if the token does not know where to get data and software updates because the URL changed, then it is forever broken. A company is sold, changes names, changes internal URL schemas, goes out of business, etc…any of these changes could break URL’s. But if a relay server is used and that URL never changes, then the company and the token will always know where they can go to get reconnected. The relay server is intended to make sure the company and the token always stay connected. Through the relay server, the token knows which URL it needs to use to check in for updates.
|
||
|
||
The relay server can be operated by third party companies and there could be multiple ones. We will need to think through the revenue model to support them. It's possible the company pays an annual fee to do this or just a one-time fee like GS1, where a company prefix requires a one-time fee of \$30. Much like GS1 is a non-profit and handles all global GTINs for products for companies, the relay server provider can operate similarly.
|
||
|
||
Could a relay server be a public blockchain with many nodes to help ensure redundancy and uptime? Yes, it could. Could the relay server operate via a decentralize storage project? Yes it could. Different relay service providers could emerge, choosing their own solution and a token creator can decide which one to use. We don’t know what will emerge in the future, so we want the tokens to be flexible so that they are future proof to new technologies, systems and protocols.
|
||
|
||
If operating via a blockchain, the relay server is a service provider that creates a smart contract with the destination URL. The token always goes to the same smart contract to get the destination URL. If the token creator wants to change the destination URL, it can upgrade the smart contract (as long as the original protocol used to create the smart contract allows for upgrades). Any costs associated with deploying and upgrading the smart contract can be handled by the relay server provider. The creator can own the smart contract, but the use the relay server provider. Or if they want to use a different relay server provider, they can do that as they own the smart contract.
|
||
|
||
The token creator can alter the relay server URL, so if they want to move to a different relay server, they can do that. There may be costs associated with using a new relay server. What if the token is claimed by the owner of the product it is tied to? You don’t want to give them control to change the relay server URL; that control should still rest with the creator.
|
||
|
||
A creator with the ability to move relay servers makes a token truly decentralized and not tied to any relay server.
|
||
|
||
## **Update/append/reprogram**
|
||
|
||
### token\_description\_brand
|
||
|
||
Description:
|
||
|
||
As explained above, a product with a token\_ID has a corresponding URL that displays the information that a brand wants to present about the product. When tokenized through the fields in this document, that information is also displayed.
|
||
|
||
This is in rich text format enabling the token creator/owner to add content to help describe or further identify a token. This field can include HTML.
|
||
|
||
This standard would support provenance and history and allow the token creator to add more information over time to a token. For example, product warranty information could change and require updates, or how to upcycle/recycle/reuse a product changes over time with new technologies and processes, which would require updating. Or a product accrues history where it is used \- for example a pair of skis could include history where they were skied by the owner.
|
||
|
||
This field could also include links to other media or content that is tied to the token. For example, a tokenized product (thing) could have additional product images beyond an image used in the media\_displayed field.
|
||
|
||
Or a token that represents an experience could include links to an image gallery for that experience.
|
||
|
||
This field helps brands comply with the EU DPP requirements
|
||
|
||
After creation:
|
||
|
||
- [x] Editable Field
|
||
- [ ] Non-editable Field
|
||
|
||
Notes
|
||
|
||
* There can there be several templates tied to this field that helps creators/owners when adding/updating information? For example: a provenance/history template, a warranty template, a template for information around reuse/recycle/upcycle/repurpose, a template for adding external media links. Or, a brand could connect all this data to a generative AI LLM, which could auto-create and auto-update this qualitative information. Also think of templates that add information to existing information already included in this field.
|
||
|
||
### token\_description\_owner
|
||
|
||
Description:
|
||
|
||
This field is for token owners (not token creators) to add information, history, media to the token. This is in rich text format enabling the token creator/owner to add content to help describe or further identify a token. This field can include HTML. Media items would be stored on external platforms and this field would include links to them or code embeds to render them.
|
||
|
||
After creation:
|
||
|
||
- [x] Editable Field
|
||
- [ ] Non-editable Field
|
||
|
||
Notes
|
||
|
||
* There can there be several templates tied to this field that helps creators/owners when adding/updating information? For example: a provenance/history template, a warranty template, a template for information around reuse/recycle/upcycle/repurpose, a template for adding external media links. Or, a brand could connect all this data to a generative AI LLM, which could auto-create and auto-update this qualitative information. Also think of templates that add information to existing information already included in this field.
|
||
|
||
### token\_creation\_date-time
|
||
|
||
Description:
|
||
|
||
Represents the creation date/time in unix time format (same as what was used in the token\_id concatenation). This field may be redundant as this data can be extracted from token\_ID.
|
||
|
||
### token\_updates\_date\_time
|
||
|
||
Description:
|
||
|
||
Represent the date/time when the token last saw updates to an editable field in unix time format.
|
||
|
||
## **Communication and communities**
|
||
|
||
### Summary
|
||
|
||
We can start with SQL, but likely structure for AT protocol to future proof to federated, then could move to DAG with IPFS for full decentralization if that is what we want, but if that does not work, we can go to AT protocol. See for more: [https\://chatgpt.com/share/67b3bd5a-0dfc-800e-be42-9c776751ffe8](https://chatgpt.com/share/67b3bd5a-0dfc-800e-be42-9c776751ffe8)
|
||
|
||
### Email/SMS/Chat App Integration
|
||
|
||
There is less friction to the end user to give them the option to manage communications from their email, SMS or existing chat client, rather than using the token app, and the token app just serves as the relay.
|
||
|
||
## **Transaction Types**
|
||
|
||
### Secondary market royalties
|
||
|
||
The banking information below would be hashed to protect it (or we could explore using zero knowledge proofs), since tokens are public and their fields and data is public. We already discussed where third party providers can handle the integration between consumer brand, secondary marketplaces/gear rental retailers (and creating the APIs and plugins for their ecommerce systems) and parse payments. They would earn a .5% fee for each transaction to compensate for their integration work.
|
||
|
||
#### *IP\_owner\_royalty\_payout*
|
||
|
||
Description:
|
||
|
||
This is a yes/no multiple choice. If a product is sold on a used basis or is rented out by an equipment rental shop, upon sale a royalty would be paid off of the purchase price back to the original IP owner
|
||
|
||
#### *IP\_owner\_royalty\_percentage*
|
||
|
||
Description:
|
||
|
||
If royalty-payout=yes, then the creator can input a percentage that would be paid out. We should standardize to a specific percentage that everyone uses, but still leave the option open to the IP owner to change this if they want. If they input a higher percentage, the consumer may not want to pay it. Brands could need to communicate to consumer why their percentage might be higher in the token\_description\_brand field.
|
||
|
||
#### *IP\_owner\_royalty\_fee*
|
||
|
||
Description:
|
||
|
||
If royalty-payout=yes, then the creator can input a fee that would be paid out. If both a percentage is included and a fee, then the fee would be paid (which can represent minimum royalties) and then percentage minus fee over and above the fee would be paid out. The fee helps to ensure minimum payouts so that backend processing fees can be paid to operate this.
|
||
|
||
#### *business\_legal\_name*
|
||
|
||
Description:
|
||
|
||
IP owner name who received royalty payments.
|
||
|
||
#### *depositor\_bank\_payout\_name*
|
||
|
||
Description:
|
||
|
||
IP owner bank name where payments received.
|
||
|
||
#### *depositor\_bank\_address*
|
||
|
||
Description:
|
||
|
||
IP owner bank address
|
||
|
||
#### *bank\_routing\_number*
|
||
|
||
Description:
|
||
|
||
Routing number to receive payments
|
||
|
||
#### *bank\_account\_number*
|
||
|
||
Description:
|
||
|
||
Bank account number to receive payments
|
||
|
||
#### *account\_type*
|
||
|
||
Description:
|
||
|
||
Checking or savings account
|
||
|
||
#### *swift\_code*
|
||
|
||
Description:
|
||
|
||
Swift code to receive payment is it is a non-US bank
|
||
|
||
# **Tokens and AI**
|
||
|
||
As tokens are published and presumably open (or at least parts of them are open), token publishers or databases that host tokens can stand up a model context protocol (MCP) server, which is emerging as an open standard for connecting AI to systems, including data repositories. Once published, AI developers and even AI itself can discover the MCP to get access to the tokens. As AI continues to automate tasks, everyone becomes a software developer. Entrepreneurs can spin up software applications using AI without coding. With AI connected to tokens via MCP, this explodes the potential for tokens to be used in countless ways by anyone.
|
||
|
||
There are two emerging ways to think about exposing a token database via MCP for AI models, each not exclusive but both can be done simultaneously.
|
||
|
||
## **Structured Search**
|
||
|
||
Structured \= logic reasoning
|
||
|
||
Think: filters, fields, keywords, and exact matches
|
||
|
||
Backed by: PostgreSQL, Elasticsearch, Meilisearch
|
||
|
||
Best for:
|
||
|
||
* Precise lookups
|
||
* Fielded data (e.g., brand, year, serial number)
|
||
* Use cases where users know what they’re asking for
|
||
|
||
Examples:
|
||
|
||
* "nike jacket"
|
||
* "tokens minted in 2021"
|
||
* "owner\_id \= 34281"
|
||
|
||
## **Semantic Discovery**
|
||
|
||
Semantic \= meaning
|
||
|
||
Think: meaning, fuzziness, intention
|
||
|
||
Backed by: Vector DBs (pgvector, Qdrant, Pinecone, etc.)
|
||
|
||
Best for:
|
||
|
||
* Vague or natural language queries
|
||
* Exploratory search
|
||
* Personal assistants and autonomous agents
|
||
|
||
Examples:
|
||
|
||
* "show me gear suitable for alpine terrain"
|
||
* "find tokens like this one"
|
||
* "items with strong sustainability provenance"
|