Attestor.ts
This module provides the Attestor service.
Added in v0.4.0
models
Section titled “models”Attestation
Section titled “Attestation”Signature
export declare const Attestation: S.Struct<{ id: typeof S.String hash: S.TemplateLiteral<`0x${string}`> signature: S.TemplateLiteral<`0x${string}`> attestedMessage: S.TemplateLiteral<`0x${string}`> signerAddress: S.TemplateLiteral<`0x${string}`>}>Added in v0.4.0
Attestation (type alias)
Section titled “Attestation (type alias)”Signature
export type Attestation = typeof Attestation.TypeAdded in v0.4.0
AttestationServiceResponse
Section titled “AttestationServiceResponse”Signature
export declare const AttestationServiceResponse: S.Struct<{ id: typeof S.String hash: S.TemplateLiteral<`0x${string}`> signature: S.Struct<{ r: S.TemplateLiteral<`0x${string}`>; s: S.TemplateLiteral<`0x${string}`>; v: typeof S.Number }> signerAddress: S.TemplateLiteral<`0x${string}`>}>Added in v0.4.0
AttestationServiceResponse (type alias)
Section titled “AttestationServiceResponse (type alias)”Signature
export type AttestationServiceResponse = typeof AttestationServiceResponse.TypeAdded in v0.4.0
Options
Section titled “Options”Signature
export declare const Options: S.Struct<{ baseUrl: S.optionalWith<S.Union<[typeof S.URLFromSelf, typeof S.URL]>, { default: () => URL }> apiKey: S.Redacted<typeof S.NonEmptyTrimmedString>}>Added in v0.4.0
Options (type alias)
Section titled “Options (type alias)”Signature
export type Options = typeof Options.TypeAdded in v0.4.0
services
Section titled “services”Attestor (class)
Section titled “Attestor (class)”Client for attestation service that signs poseidon(unspendable_address, beneficiary)
Signature
export declare class AttestorAdded in v0.4.0