PackageKey class
One public key advertised in a KeyPackage.
kid is a short identifier for the key (a SHA-256 prefix of pub) which envelopes use to say which of the recipient's keys was used. alg is an algorithm id from SecretSharingAlgos; readers skip entries whose alg or use they do not recognise, which is what lets a key package advertise new suites without breaking old readers.
- Annotations
-
- @experimental
Constructors
- PackageKey({required String use, required String alg, required String pub, String? kid})
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
computeKid(
String pub) → String - First 8 bytes, hex-encoded, of the SHA-256 of the public key material.
-
fromJson(
Object? json) → PackageKey?