Wallet Object Types and Resource Addressing #44
Replies: 3 comments 3 replies
-
I think we can un-deprecate the EDIT: from a quick test, setting |
Beta Was this translation helpful? Give feedback.
-
Since there's only a single |
Beta Was this translation helpful? Give feedback.
-
An example of using instructions w/ a Type At a glance I know what kind of record this is, and have instructions on how to validate it, and where to point to on resolution.
171 bytes of 256 bytes max Adding example to above document as well. |
Beta Was this translation helpful? Give feedback.
-
Proposal
Define an easy way to identify a group of resources associated with an XRP Ledger wallet address; thus, one can quickly determine what the resource pointer group represents. This data will exist in the Domain field via an AccountSet.
Example:
157 of 256 bytes
The first line identifies what this group of resources represents, in this case, an xNFT.
The first line starts with a @ and ending with a new line.
@[name of resource group] : [flags/other instructions / optional] [newline delimited]
The following lines identify the [scheme/proto] : [resource address / instructions] ending with a newline. These will be our resource or instruction pointers for the object. These will define off ledger resources or instructions associated with this object.
In the example above, they represent the NFT data storage locations. These include an IPFS cid, Bittorrent id, ILP address, and a web URL.
The resource/instruction pointers will honor existing scheme names but without // slashes to conserve space.
Examples:
Ideally, the resource/instruction pointers would be ordered by their priority, depending on the resource group requirements, in the case of an NFT, the best source of the object(s) data. Suggestion, not required.
Existing Domain values can be updated easily to follow the new schema or allowed backward compatibility. Where values set with [scheme]:// are still valid entries.
Example:
Domain:
This is equivalent to
Domain:
@xrp-ldeger-toml:
http
Also allow for non-pointer objects, with small data payloads / instructions
Example:
or
All @[Type]s would be pre-defined and agreed on by the foundation to create a set of standards for each @[Type]. This will enable developers to create indexes, search efficiently, and extend the XRP wallet's functionality in a defined way.
Type w/ Instructions for validation
This is an examle of using the ledger to do resolution, in this case, domain name resolution.
At a glance I know what kind of record this is, and have instructions on how to validate it, and where to point to on resolution.
Motivation
Help identify and index wallet Types and Resources in said wallets that build on the ledger's existing features today.
Limitations
The Domain field is limited to 256 bytes; however, this has not been as limiting as one might expect in my testing.
Example Usage
Beta Was this translation helpful? Give feedback.
All reactions