Skip to content

verifyAttestationSignature()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / verifyAttestationSignature

verifyAttestationSignature(attestation, options?): Promise<boolean>

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:11144

Verify attestation signature using Ed25519

Validates that the attestation was properly signed by the claimed issuer. Uses the issuer’s public key from the known issuers registry or fetches from Range’s issuer registry API.

⚠️ PARTIAL IMPLEMENTATION: Currently validates attestation structure and attempts Ed25519 verification, but relies on known issuer registry which is incomplete. Full implementation requires:

  • Range issuer registry API integration
  • On-chain issuer verification

RangeSASAttestation

The attestation to verify

Verification options

boolean

Whether to fetch issuer key from Range API if not in registry

string

Range API endpoint

string

Custom issuer key (for testing)

Promise<boolean>

Whether the signature is valid

const valid = await verifyAttestationSignature(attestation, {
fetchIssuerKey: true,
rangeEndpoint: 'https://api.range.org/v1',
})