Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/eas_deno/services/rsa-service.ts>RsaService

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 RsaService
import { RsaService } from "https://deno.land/x/eas_deno@v0.0.8/services/rsa-service.ts";

Methods

decryptWithoutKey(
token: string,
publicKey: string,
encryptedData: string,
): Promise<RsaDecryptWithoutPrivateKeyResponse>
decryptWithPrivateKey(
token: string,
privateKey: string,
dataToDecrypt: string,
): Promise<RsaDecryptResponse>
encryptWithoutKey(
token: string,
dataToEncrypt: string,
keySize: number,
): Promise<RsaEncryptWithoutKeyResponse>
encryptWithPublicKey(
token: string,
publicKey: string,
dataToEncrypt: string,
): Promise<RsaEncryptWithPublicResponse>
getRsaKeys(token: string, keySize: number): Promise<RsaGetKeyPairResponse>
signWithKey(
token: string,
privateKey: string,
dataToSign: string,
): Promise<RsaSignWithKeyResponse>
signWithoutKey(
token: string,
dataToSign: string,
keySize: number,
): Promise<RsaSignWithoutKeyResponse>
verify(
token: string,
publicKey: string,
signature: string,
originalData: string,
): Promise<RsaVerifyResponse>