Legation class

This class is used to delegate an authorization from one public-key to another. The Internet-Identity canister signs a delegation for a user's session-key letting the session-key call on the user's behalf.

Constructors

Legation({required Uint8List legatee_public_key_DER, required BigInt expiration_timestamp_nanoseconds, List<Principal>? target_canisters_ids, required Uint8List legator_public_key_DER, required Uint8List legator_signature})

Properties

expiration_timestamp_nanoseconds BigInt
The expiration for this delegation.
final
hashCode int
The hash code for this object.
no setterinherited
legatee_public_key_DER Uint8List
The DER encoded public-key of the legatee - the receiver of the delegation.
final
legator_public_key_DER Uint8List
The DER encoded public-key of the legator - the one delegating.
final
legator_signature Uint8List
The legator's signature on this Legation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target_canisters_ids List<Principal>?
An optional list of canister principals to restrict the scope of this delegation.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

create(Keys legator_keys, Uint8List legatee_public_key_DER, BigInt expiration_timestamp_nanoseconds, [List<Principal>? target_canisters_ids]) Future<Legation>
This function creates a Legation by the legator_keys onto the legatee_public_key_DER.