Skip to content

Type Alias: AnonymousSDKConstructor()

AnonymousSDKConstructor: (args?: {apiURL: string;scrypt: SCrypt;sscrypto: SSCrypto; }) => AnonymousSDK

Parameters

args?

apiURL

string

The Seald server URL to use.

scrypt

SCrypt

To manually pass an SCrypt implementation to override the current SDK's default implementation. Must take a Buffer for password, another Buffer for salt, derive them with SCrypt with parameters N=16384, r=8, p=1, an output length of 64 bytes, and return the output as a binary Buffer. For advanced use only.

sscrypto

SSCrypto

To manually pass an SSCrypto implementation to override the current SDK's default implementation. For advanced use only.

Returns

AnonymousSDK