You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I like that all the good crypto is collected in this library, but starting to use external libraries quickly breaks the typescriptness of things
If you use: https://github.com/mattrglobal/jsonld-signatures-bbs/blob/master/src/BbsBlsSignature2020.ts
And want to send in a key, it is not possible to send in this repos keyType, because it complains on certain methods variables that this class signature dont have. Here, the instance check is this bls key pair, but if I send that into the Signature function, I will get errors. I had to reconstruct it doing the things below to get it to work together.
I did reuse the mattr key lib to reconstruct from a key.toKeyPair(true);
So not need to look at that earlier reconstruction.
But what would be best practise for this?
So, I like that all the good crypto is collected in this library, but starting to use external libraries quickly breaks the typescriptness of things
If you use: https://github.com/mattrglobal/jsonld-signatures-bbs/blob/master/src/BbsBlsSignature2020.ts
And want to send in a key, it is not possible to send in this repos keyType, because it complains on certain methods variables that this class signature dont have. Here, the instance check is this bls key pair, but if I send that into the Signature function, I will get errors. I had to reconstruct it doing the things below to get it to work together.
What would be best approach to get this to be a bit more seamless? So that this key is accepted as a type for the key from BbsBlsSignature package?
@OR13 @tplooker @kdenhartog
The text was updated successfully, but these errors were encountered: