Skip to content

AttestedSigner.getAddress

Computes the address an attested signature signs for: keccak256(0x06 ‖ policyId ‖ userTag)[12:].

The address depends on neither the program key nor the chain.

TIP-1160

Imports

Named
import { AttestedSigner } from 'ox/tempo'

Examples

import { AttestedSigner } from 'ox/tempo'
 
const address = AttestedSigner.getAddress({
  policyId: `0x${'aa'.repeat(32)}`,
  userTag: `0x${'bb'.repeat(32)}`
})

Definition

function getAddress(
  options: getAddress.Options,
): Address.Address

Source: src/tempo/AttestedSigner.ts

Parameters

options

  • Type: getAddress.Options

The policy ID and user tag.

options.policyId

  • Type: 0x${string}

Attested Key Registry policy ID.

options.userTag

  • Type: 0x${string}

Tag of the user whose address to derive.

Return Type

The attested address.

Address.Address