ShutterApi
Defined in: api.ts:75
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ShutterApi(
options?):ShutterApi
Defined in: api.ts:79
Parameters
Section titled “Parameters”options?
Section titled “options?”ShutterApiOptions = {}
Returns
Section titled “Returns”ShutterApi
Properties
Section titled “Properties”network
Section titled “network”
readonlynetwork:ShutterNetwork
Defined in: api.ts:76
Methods
Section titled “Methods”getDecryptionKey()
Section titled “getDecryptionKey()”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.
Parameters
Section titled “Parameters”eonKey
Section titled “eonKey”identity
Section titled “identity”Returns
Section titled “Returns”Promise<DecryptionKey>
getEncryptionData()
Section titled “getEncryptionData()”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.
Parameters
Section titled “Parameters”identityPrefix
Section titled “identityPrefix”registrant?
Section titled “registrant?”string
Returns
Section titled “Returns”Promise<EncryptionData>
registerIdentity()
Section titled “registerIdentity()”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.
Parameters
Section titled “Parameters”identityPrefix?
Section titled “identityPrefix?”revealAt
Section titled “revealAt”number
Returns
Section titled “Returns”Promise<ApiRegistration>