Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/eas_deno/services/signature-service.ts>SignatureService

eas-deno is a TypeScript SDK that authenticates with the main EAS API through tokenization. Giving you the performance of Rust without having to learn FFI in Rust.
Go to Latest
class SignatureService
import { SignatureService } from "https://deno.land/x/eas_deno@v0.0.7/services/signature-service.ts";

Methods

hmacSign(
token: string,
key: string,
message: string,
): Promise<HmacSignResponse>
hmacVerify(
token: string,
key: string,
message: string,
signature: string,
): Promise<HmacVerifyResponse>
sha512ED25519DalekSign(token: string, dataToSign: string): Promise<SHA512ED25519DalekSignResponse>
sha512ED25519DalekVerify(
token: string,
publicKey: string,
originalData: string,
signature: string,
): Promise<SHA512ED25519DalekVerifyResponse>
sha512RsaSign(
token: string,
dataToSign: string,
keySize: number,
): Promise<SHA512RsaSignResponse>
sha512RsaVerify(
token: string,
publicKey: string,
originalData: string,
signature: string,
): Promise<SHA512RsaVerifyResponse>