OverviewFilesCommitsIssuesDocsReleasesPeers

apds commits / 11baf13

signatures are valid with and without trailing equal signs, be sure we only accept signatures that have the trailing equal signs since we convert these into hashes and they need to be unique
11baf13154e4062ac1656d656d683627c991d1fb
by Everett Bogue <ev@evbogue.com> · 2025-10-28T01:04:42.000Z

Changed files (1) +7 -3

apds.js +7 -3
……@@ -47,7 +47,7 @@ apds.start = async (appId) => {
4747 obj.text = await apds.get(obj.opened.substring(13))
4848 obj.ts = obj.opened.substring(0, 13)
4949 newArray.push(obj)
50 } catch (err) { console.log(err) }
50 } catch (err) { /*console.log(err)*/ }
5151 }))
5252 const newLog = []
5353
……@@ -113,9 +113,13 @@ apds.sign = async (data) => {
113113
114114apds.open = async (msg) => {
115115 try {
116 return await an.open(msg)
116 if (msg.endsWith('==')) {
117 return await an.open(msg)
118 } //else {
119 //console.log('NOT A VALID SIGNATURE ' + msg)
120 //}
117121 } catch (err) {
118 //console.log('Not a valid Bog5 protocol message')
122 //console.log('Not a valid ANProto message')
119123 }
120124}
121125