Giter Club home page Giter Club logo

Comments (8)

OR13 avatar OR13 commented on May 10, 2024

Also, @panva Thank you for this library! I used it to test interoperability with browser JWS implementations using secp256k1 / ed25519. I have some JSON-LD signature suites that I need to update to support the features of jsonld-signatures, which is the main reason I came across this issue, and these JWS use b64: false detached jws.

from jose.

panva avatar panva commented on May 10, 2024

https://github.com/panva/jose/blob/master/docs/README.md#jwsverifyjws-keyorstore-options

i think you should be providing parse:false to just get a buffer back if you’re working with b64:false and arbitrary buffers

from jose.

panva avatar panva commented on May 10, 2024

But please provide a code snippet so that i don’t have to guess what you’re doing.

from jose.

OR13 avatar OR13 commented on May 10, 2024

Sorry, I should have provided a more minimal example, I will do so.

from jose.

OR13 avatar OR13 commented on May 10, 2024

https://gist.github.com/OR13/862380ac861ee2d937df2653c22ea44a

git clone [email protected]:/862380ac861ee2d937df2653c22ea44a.git;
cd 862380ac861ee2d937df2653c22ea44a;
npm i
npm run test
> node test

sig1 eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..AEQgdpSMul2vr7nrC1XV9fpGu2T0KcqXQU3z--ihVGroqgDOiqvBBgrekYGHASnFztCApP82t8fipxrEGsI1Dg
sig2 eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..AEQgdpSMul2vr7nrC1XV9fpGu2T0KcqXQU3z--ihVGroqgDOiqvBBgrekYGHASnFztCApP82t8fipxrEGsI1Dg
signatures match!
sig1 eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..C2uzr4SqieLvJRg7z7CnfERM_iyN4l-QD2JlJvZwWE6A7vlxzKbjhmIQgJzHq2pXsx1vUn64e-70soFzKLCaAg
sig2 eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..Tljsa5HYvhUuYbMhRZTxfOAZf0Hd6e_ovYqKcpfCClX7WsvKjk_FoWECj7ifJ1sU4r8mecyoFtVzPxr7fjsFDQ
Error: signatures do not match

This gist was modified from the comment on the original issue:

transmute-industries/json-ld-sig-detached-jws#1 (comment)

from jose.

panva avatar panva commented on May 10, 2024

Thank you, i can work with this.

from jose.

panva avatar panva commented on May 10, 2024

can you take a look at daabedc?

from jose.

OR13 avatar OR13 commented on May 10, 2024

Thanks, I retested, and your fix appears to have resolved this issue.

from jose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.