AnonymousIdentity
Defined in: packages/agent/src/auth.ts:101
A General Identity object. This does not have to be a private key (for example, the Anonymous identity), but it must be able to transform request.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AnonymousIdentity():
AnonymousIdentity
Returns
Section titled “Returns”AnonymousIdentity
Methods
Section titled “Methods”getPrincipal()
Section titled “getPrincipal()”getPrincipal():
Principal
Defined in: packages/agent/src/auth.ts:102
Get the principal represented by this identity. Normally should be a
Principal.selfAuthenticating()
.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”transformRequest()
Section titled “transformRequest()”transformRequest(
request
):Promise
<unknown
>
Defined in: packages/agent/src/auth.ts:106
Transform a request into a signed version of the request. This is done last after the transforms on the body of a request. The returned object can be anything, but must be serializable to CBOR.
Parameters
Section titled “Parameters”request
Section titled “request”Returns
Section titled “Returns”Promise
<unknown
>