ToolchainIndex class
A verified toolchain index.
Constructors
-
ToolchainIndex({required List<
ToolchainEntry> toolchains, required String signedBy, required Uri source, required int serial})
Properties
-
compatible
→ List<
ToolchainEntry> -
Toolchains this host can use, in index order (the owner lists the newest last).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serial → int
-
Increases with every published index; a lower serial than one seen before is refused
(protection against replaying an old, signed index).
final
- signedBy → String
-
Key id of the trusted key whose signature verified.
final
- source → Uri
-
final
-
toolchains
→ List<
ToolchainEntry> -
final
Methods
-
byId(
String id) → ToolchainEntry? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
verifyAndParse(
Uint8List bytes, Map< String, String> trustedKeys, Uri source) → ToolchainIndex -
Verifies the signed envelope
bytesagainsttrustedKeys(key id -> base64 public key) and parses it. Verification is never skipped: an unsigned, unknown-key or bad signature is an IndexVerificationException.