Skip to content

v1.1.0

Choose a tag to compare

@pandres95 pandres95 released this 23 Sep 02:08
· 17 commits to main since this release
3e9baa8

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 Authenticator and Device aliases of both crates take a third type parameter, W: the
    authenticator's AuthenticatorWeightInfo, which fc-pallet-pass charges verification with.
    Bind WeightInfo<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 WeightInfo is now a struct, WeightInfo<T: frame_system::Config>, generated by
    .maintain/frame-weight-template.hbs, instead of a trait implemented for (). The
    verification_weight methods on the attestation and credential types are gone (frame-contrib
    2.3 charges 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 with frame-omni-bencher, which CI now does once per PR.