feat(user-agent-auth): add RSA and ECDSA auth key types #29

Merged
Skipper merged 7 commits from feat-min-RSA-&-ECDSA-auth-pipeline into main 2026-03-14 14:41:47 +00:00
3 changed files with 1 additions and 3 deletions
Showing only changes of commit d29bca853b - Show all commits

View File

@@ -46,6 +46,7 @@ create table if not exists useragent_client (
id integer not null primary key,
nonce integer not null default(1), -- used for auth challenge
public_key blob not null,
key_type integer not null default(1), -- 1=Ed25519, 2=ECDSA(secp256k1)
created_at integer not null default(unixepoch ('now')),
updated_at integer not null default(unixepoch ('now'))
) STRICT;

View File

@@ -1,2 +0,0 @@
-- Not reversible without data loss; drop the column to revert
ALTER TABLE useragent_client DROP COLUMN key_type;

View File

@@ -1 +0,0 @@
ALTER TABLE useragent_client ADD COLUMN key_type INTEGER NOT NULL DEFAULT 1;