common_web library

Common functions and classes for the Web platform.

Classes

IICaller
Caller implementation with a SubtleCryptoECDSAP256Keys session-key, an internet-identity login function, and save/load accross browser sessions using IndexDB.
SubtleCryptoECDSAP256Keys
A Keys implementation that uses the SubtleCrypto Web api.

Functions

ii_login({required Uint8List session_public_key_DER, required Duration valid_duration, String? derivation_origin, String ii_url = 'https://identity.ic0.app'}) Future<List<Legation>>
Low level function for the internet-identity login flow. Use the IICaller.login function for a simple login.

Exceptions / Errors

AuthorizeClientFailure
The type of the error that can happen during the internet-identity login flow.