mattrglobal / pairing_crypto

A library for pairing based cryptography
Apache License 2.0
14 stars 7 forks source link

feat(wasm): update wrapper for key gen #67

Closed tplooker closed 2 years ago

tplooker commented 2 years ago

Restructures the key gen API so that IKM and key_info are not required and also adds some more test cases to sign

dev0x1 commented 2 years ago

As per spec, KeyInfo is optional, we can make it optional as well. I have modeled upon the underlying blst key-gen APIs which don't specify key-info as optional. Callers can specify an empty array for key-info if they don't want to provide it but I think specifying KeyInfo optional makes more sense. I can make the necessary changes if we agree on this.

tplooker commented 2 years ago

Yes sounds good thanks @dev0x1