Skip to main content
This reference is generated from the checked-out TypeScript exports. Types and signatures describe the package contract; source presence does not establish deployment or service availability. Error expressions below are direct throws, not an exhaustive list of failures from dependencies. Source module. See the reference index for package import boundaries and verification scope.

buildTinOwnerIntentMessage

Build the wallet-displayable message for a TIN owner intent. Solana wallets such as Phantom intentionally reject arbitrary binary messages that look like a transaction payload. The owner commitment stays the exact 32-byte intentHash; the wallet signs this deterministic UTF-8 wrapper, and verifiers bind it to the recomputed commitment. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 547.

buildTinV1Creation

Prepare a private TIN V1 creation. The raw TIN and lookup secret are used only to create the encrypted envelope and keyed commitment; callers submit the returned payload without either plaintext value. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 952.
Direct failure expressions:

buildTinV1OwnerRecoveryMessage

Canonical wallet-signature message used locally to derive the key for the encrypted TIN recovery record. This signature does not authorize a transaction. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 345.

createOwnerIntentSignatureInstruction

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 573.

createTinV1IdentityEnvelope

Build the encrypted identity fields required by CreateTinV1. The TIN is the private lookup material; only its commitment is returned. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 799.
Direct failure expressions:

createTinV1OwnerIntentHash

Build the canonical owner intent for a private TIN V1 registry record. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 896.
Direct failure expressions:

createTinV1OwnerRecoveryEnvelope

Encrypt a new owner’s TIN locally for the owner-indexed recovery PDA. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 407.
Direct failure expressions:

decryptTinV1OwnerRecoveryEnvelope

Decrypt the owner-recovery record locally after wallet signing. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 431.
Direct failure expressions:

DEFAULT_TIP_PROGRAM_ID

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 15.

getTinsGlobalStatePda

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 257.

getTinsProgramPublicKey

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 72.

getTinV1CreationStagingPda

PDA that holds one in-progress, owner-authorized staged TIN creation. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 277.

getTinV1OwnerRecoveryEnvelope

Read the encrypted owner recovery envelope from its owner-indexed TIP PDA. The TIN remains encrypted; the wallet signature used to decrypt it stays on the owner’s device. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 302.
Direct failure expressions:

getTinV1OwnerRecoveryMessageForEnvelope

Return the same stable message that was signed when the recovery envelope was created. The envelope is checked for a supported TIN V1 format first. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 365.
Direct failure expressions:

getTinV1OwnerRecoveryPda

Owner-indexed locator used only for wallet-authorized TIN recovery. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 289.

getTinV1RegistryPda

Derive the private V1 registry PDA from a TIN and the configured lookup key. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 79.
Direct failure expressions:

getTipRouteMerkleRootV1Pda

One TIP-wide append-only route-membership root shared by all TINs. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 267.

resolveTinV1Identity

Resolve the owner-provided identity directly from the TIP V1 registry RPC account. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 144.
Direct failure expressions:

serializeTinV1CreationChunkParams

Serialize instruction 20: append one bounded encrypted-data chunk. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 745.
Direct failure expressions:

serializeTinV1CreationCloseParams

Serialize instruction 22: recover expired staged-creation rent. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 768.

serializeTinV1CreationFinalizeParams

Serialize instruction 21: finalize by the creation intent hash. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 761.

serializeTinV1CreationParams

Serialize a Node-verified CreateTinV1 payload without receiving the lookup secret. Plaintext lookup material remains on the owner side. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 590.
Direct failure expressions:

serializeTinV1CreationStageParams

Serialize instruction 19: initialize a bounded, intent-bound TIN V1 stage. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 679.
Direct failure expressions:

submitTinV1Creation

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 839.
Direct failure expressions:

TINS_PROGRAM_SALT

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 17.

validateTinTipRoute

Validate the public TIP route associated with a TIN. The privacy-receiving root, snapshot key, and any spend authority remain on the owner device; only these commitments are safe to pass through coordination services. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/tins. Implementation, line 36.