DelegationIdentity class

An Identity that adds delegation to a request. Everywhere in this class, the name innerKey refers to the SignIdentity that is being used to sign the requests, while originalKey is the identity that is being borrowed. More identities can be used in the middle to delegate.

Inheritance

Constructors

DelegationIdentity(SignIdentity _inner, DelegationChain _delegation)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAccountId() Uint8List
inherited
getDelegation() DelegationChain
getPrincipal() Principal
Get the principal represented by this identity. Normally should be a Principal.selfAuthenticating().
inherited
getPublicKey() PublicKey
Returns the public key that would match this identity's signature.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(BinaryBlob blob) Future<BinaryBlob>
Signs a blob of data, with this identity's private key.
override
toString() String
A string representation of this object.
inherited
transformRequest(HttpAgentRequest request) Future
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. @param request - internet computer request to transform
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromDelegation(SignIdentity key, DelegationChain delegation) DelegationIdentity
Create a delegation without having access to delegate key.