Skip to main content
Deno 2 is finally 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.
Latest
class SignatureService
import { SignatureService } from "https://deno.land/x/eas_deno@v1.1.5/services/signature-service.ts";

Methods

blake2ED25519DalekSign(
token: string,
blake2HashSize: number,
dataToSign: string,
): Promise<Blake2ED25519DalekSignResponse>
blake2ED25519DalekVerify(
token: string,
blake2HashSize: number,
publicKey: string,
signature: string,
originalData: string,
): Promise<Blake2ED25519DalekVerifyResponse>
blake2RsaSign(
token: string,
blake2HashSize: number,
rsaKeySize: number,
dataToSign: string,
): Promise<Blake2RsaSignResponse>
blake2RsaVerify(
token: string,
blake2HashSize: number,
publicKey: string,
signature: string,
originalData: string,
): Promise<Blake2RsaVerifyResponse>
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>