Skip to content

Attestor.ts

This module provides the Attestor service.

Added in v0.4.0

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

Signature

export type Attestation = typeof Attestation.Type

Added in v0.4.0

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

Signature

export type AttestationServiceResponse = typeof AttestationServiceResponse.Type

Added in v0.4.0

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

Signature

export type Options = typeof Options.Type

Added in v0.4.0

Client for attestation service that signs poseidon(unspendable_address, beneficiary)

Signature

export declare class Attestor

Added in v0.4.0