chore: update proto

This commit is contained in:
Adhiraj Singh
2022-02-12 19:48:46 +05:30
parent 3b756787d4
commit e4eaf2d2e4
5 changed files with 1372 additions and 354 deletions

View File

@@ -116,7 +116,7 @@ export const makeNoiseHandler = ({ public: publicKey, private: privateKey }: Key
const certDecoded = decrypt(serverHello!.payload!)
const { details: certDetails, signature: certSignature } = proto.NoiseCertificate.decode(certDecoded)
const { issuer: certIssuer, key: certKey } = proto.Details.decode(certDetails)
const { key: certKey } = proto.NoiseCertificateDetails.decode(certDetails)
if(Buffer.compare(decStaticContent, certKey) !== 0) {
throw new Boom('certification match failed', { statusCode: 400 })