apsig 0.5.0 released (破壊的な変更あり)
デフォルトだと検証の結果は失敗時にNone
、成功時はkeyId
を返すようになりました (verify関数にraise_on_fail引数をTrueにして渡すと失敗時にエラーを吐くようにもできます)
あとはSignatureヘッダーの解析だけ使うこともできるようになりました (Draft版HTTP署名のみ。)
一応古いdraftVerifier
の方は廃止されてるものの互換性維持のために0.4.0時点と同じ値を返すようになってます (ただ1.0で削除するので使うべきではありません)
https://github.com/AmaseCocoa/apsig/releases/tag/0.5.0
https://pypi.org/project/apsig/0.5.0/
If you have a fediverse account, you can quote this note from your own instance. Search https://misskey.io/notes/a5dbubvrifr401bb on your instance and quote it. (Note that quoting is not supported in Mastodon.)