Skip to content

Utility

View as Markdown

Use thru util for local format conversion and key derivation tasks.

CommandUse it for
convert pubkey hex-to-thrufmt <hex_pubkey>Convert a hex public key to ta... format.
convert pubkey thrufmt-to-hex <thrufmt_pubkey>Convert a ta... address to hex.
convert signature hex-to-thrufmt <hex_signature>Convert a hex signature to ts... format.
convert signature thrufmt-to-hex <thrufmt_signature>Convert a ts... signature to hex.
derive [private_key] [—file <path>] [—stdin] [—format <hex, thrufmt, or identity-json>]Derive the ed25519 public key (or a full identity keyfile) from a 32-byte hex private key.
FlagWhy it matters
--file, --stdinRead the private key for derive from a file or stdin instead of the argument. stdin is only read when --stdin is passed.
--formatChoose what derive prints in text mode: the hex public key (default), the ta... public key, or the identity keyfile JSON (seed followed by pubkey), which includes the private key.
--reveal-private-keyInclude private_key_hex in --json output; off by default. Note that --format identity-json always emits the identity keyfile (which embeds the private seed) regardless of this flag, so never log or share that output.
Terminal window
thru util convert pubkey hex-to-thrufmt 0123...
thru util convert signature thrufmt-to-hex ts...
thru util derive --file seed.hex --format thrufmt
  • This family is read-only and local.
  • Reach for it whenever another command requires ta... or ts... formatting and you only have hex.
  • derive accepts 64 hex characters with an optional 0x prefix. With --json it prints public_key_hex and public_key_thrufmt, adding identity_json when --format identity-json is selected.