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
After generating the keypair in the src/keypair.js , the keypair.getPublic('hex') encodes the public key using the method getPublic for lib/elliptic/ec/key.js
KeyPair.prototype.getPublic=functiongetPublic(compact,enc){// compact is optional argumentif(typeofcompact==='string'){enc=compact;compact=null;}if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!enc)returnthis.pub;returnthis.pub.encode(enc,compact);};
After generating the keypair in the src/keypair.js , the keypair.getPublic('hex') encodes the public key using the method getPublic for lib/elliptic/ec/key.js
But in order to be compatible with https://github.com/minkainc/webwallet-sdk-java version it should use the lib/elliptic/eddsa/key.js
So my proposal is to change the implementation of the keypair.js to :
Certainly there are some other changes and adequations that need to be made in Address and Signature.
The text was updated successfully, but these errors were encountered: