mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-05 16:39:08 +00:00
23 lines
1.1 KiB
Markdown
23 lines
1.1 KiB
Markdown
# Solana definitions
|
|
|
|
To allow nicer token presentation on the device, Trezor allows passing Definitions as additional info. Currently only
|
|
one token can be included in the definitions. Solana tokens are uniquely identified by their program id and mint
|
|
account, Trezor additionally expects a name and a ticker symbol.
|
|
|
|
In the future we might also include definitions for instructions.
|
|
|
|
## Retrieving the definitions
|
|
A full list of Solana definitions is compiled from multiple sources and is available [in a separate repository](TODO).
|
|
|
|
From this list, a collection of binary blobs is generated, signed, and made available online.
|
|
|
|
A given Trezor firmware will only accept signed definitions newer than a certain date, typically one month before
|
|
firmware release. This means that a client application should either always fetch fresh definitions from the official
|
|
URLs, or refresh its local copy frequently.
|
|
|
|
The base URL for the definitions is `https://data.trezor.io/firmware/solana-definitions/`.
|
|
|
|
## Definition format
|
|
|
|
Look at [`ethereum-definitions.md`'s](ethereum_definitions.md) `Definition Format` section.
|