Repository navigation
v1.1.0
The first release with measured verification weights. Until now every authenticator reported
zero, so fc-pallet-pass charged nothing for checking a signature. Weights come from the /cmd
bot on dedicated hardware (Hetzner CCX43, AMD EPYC-Milan): about 36–39 µs for a Substrate key,
and about 1.5 ms plus a per-byte cost for a WebAuthn credential, whose P-256 signature is checked in
wasm.
Requires frame-contrib 2.3, whose AuthenticatorWeightInfo lets the runtime bind what
verification costs. Device, registration and credential encodings are unchanged.
Changed
- The
AuthenticatorandDevicealiases of both crates take a third type parameter,W: the
authenticator'sAuthenticatorWeightInfo, whichfc-pallet-passcharges verification with.
BindWeightInfo<Runtime>from each crate (e.g.
pass_webauthn::Authenticator<Challenger, Authority, pass_webauthn::WeightInfo<Runtime>>), or
the output of your own run of the benchmarks. - Each crate's
WeightInfois now a struct,WeightInfo<T: frame_system::Config>, generated by
.maintain/frame-weight-template.hbs, instead of a trait implemented for(). The
verification_weightmethods on the attestation and credential types are gone (frame-contrib
2.3charges verification through the authenticator instead). - (pass-authenticators-webauthn) Attestations and assertions are charged on the lengths of their
client data and authenticator data as submitted (weight_components). - (pass-authenticators-substrate-keys) Registrations and signatures are charged the costliest
key type, since the weight can no longer be picked per signature.
Added
bench-runtime/(pass-authenticators-bench-runtime, not published): a minimal runtime that
runs every authenticator's benchmarks withframe-omni-bencher, which CI now does once per PR.