Repository navigation
This is the first versioned release and the first to be published to crates.io.
Before it, the crates were consumed from git without tags, and their version
(0.1.0) never changed. Kreivo 0.17.0-pre.1 shipped
7f240c3.
This release is 7f240c3 moved to polkadot-sdk stable2606 and frame-contrib 2.x
from crates.io. Device, registration and credential encodings are unchanged, so
clients that work with 7f240c3 keep working.
Crates:
pass-authenticators-webauthn: WebAuthn (passkey) credentials aspallet-pass
devices.pass-authenticators-webauthn-verifier: theno_stdES256 signature verifier used
by the WebAuthn authenticator.pass-authenticators-substrate-keys: Substrate public keys (MultiSignature) as
pallet-passdevices.
⚠ Breaking changes
- Update to polkadot-sdk
stable2606-2, and depend onfc-traits-authnand
fc-pallet-pass2.2(or later2.x) from crates.io instead of frame-contrib's git
repository.2.2is required for the verification weights and benchmark helpers below. - The
webauthn-verifierpackage is renamedpass-authenticators-webauthn-verifier.
Keep using it under thewebauthn-verifierdependency key with
package = "pass-authenticators-webauthn-verifier"; the Rust crate name
(webauthn_verifier) is unchanged. - All crates now share one version and are released together. Depend on the same
version of everypass-authenticators-*crate.
Added
- Every authenticator reports what verifying its input costs, through frame-contrib 2.2's
verification_weight.pallet-passcharges it on registration, on adding a device and on
every authenticated transaction:- (pass-authenticators-webauthn) a base plus per-byte cost on client data (capped at
1024 bytes) and authenticator data, including the P-256 signature check, for both
attestations and credentials; - (pass-authenticators-substrate-keys) one weight per key type (sr25519, ed25519, ecdsa,
eth).
- (pass-authenticators-webauthn) a base plus per-byte cost on client data (capped at
- Benchmarks for that verification: each crate has a benchmarking-only pallet, listed in a
runtime's benchmarks (not inconstruct_runtime!), that runs the full verification path with
worst-case inputs. The committed weights are labelled placeholders until a run on reference
hardware; the README has the command. - Benchmark helpers (frame-contrib 2.2's
DeviceAttestationBenchmarkHelperand
CredentialBenchmarkHelper), sopallet-pass's benchmarks get valid device attestations and
credentials from the authenticator instead of from the runtime.
Changed
- (pass-authenticators-webauthn) Use
urlfrom crates.io (2.5.8,
default-features = false) instead of servo/rust-url's git repository. crates.io
urlsupportsno_std+allocsince2.5.5. URL parsing is unchanged.