Skip to content
docs

ShutterApi

Defined in: api.ts:75

new ShutterApi(options?): ShutterApi

Defined in: api.ts:79

ShutterApiOptions = {}

ShutterApi

readonly network: ShutterNetwork

Defined in: api.ts:76

getDecryptionKey(input): Promise<DecryptionKey>

Defined in: api.ts:158

The decryption key for an identity, once its time has come — verified against eonKey by pairing before it is returned. Throws ShutterNotYetRevealedError before the reveal time.

BytesLike

BytesLike

Promise<DecryptionKey>


getEncryptionData(input): Promise<EncryptionData>

Defined in: api.ts:147

Encryption data for an identity registered (or to be registered) by registrant: the API’s account by default, or your own address when you self-register through the registry.

BytesLike

string

Promise<EncryptionData>


registerIdentity(input): Promise<ApiRegistration>

Defined in: api.ts:135

Register an identity through the API (the API’s account pays and owns the registration; nothing secret is sent — only a random prefix and the reveal time). revealAt is a Unix time in seconds, in the future.

BytesLike

number

Promise<ApiRegistration>