How to become a resolver
To connect as a resolver, follow these steps. Authorization is managed through a unique item in a special SBT NFT collection, containing metadata with the public keys you've generated in advance. You will need to use your SBT item's address to interact with the protocol. To obtain this item, complete a Google form with the required information.
Step 1 - Key Generation
First, you need to generate a key pair for authentication. You can use the NaCl library for this purpose:
You can generate multiple keys if necessary.
Step 2 - Preparing Metadata
To register a new resolver, you’ll need to provide a name and a set of public keys in JSON format. Here’s an example:
Step 3 - Uploading Metadata to the NFT Collection
Your metadata will be uploaded as a soul-bound token (SBT) in the NFT collection. Submit it through the provided Google form. This will initiate the process of uploading your metadata as an SBT in the NFT collection.
Step 4 - Connection Request
After completing the preparatory steps, you can connect to the service using the gRPC protocol.
Forming the Request Body
Forming the Request Body
The request body is a proto message called ConnectPayload
.
Example:
where:
connect_timestamp
- the current time of the request (The Current Epoch Unix Timestamp in milliseconds)stake_address
- the address of your SBT
Forming the Request Signature
To do this, take the request body as a byte array and create a signature using one of your private key.
Forming the Connection Request
where:
payload
- the request bodypublic_key
- the public part of the key used for signingsignature
- the request signature
Send the request to https://omni-grpc.ston.fi
Example request:
Last updated